docs.unity3d.com
    目次を表示する/隠す

    Class FakeGooglePlayStoreConfiguration

    Access Google Play store specific configurations.

    Inheritance
    Object
    FakeGooglePlayStoreConfiguration
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing
    Syntax
    public class FakeGooglePlayStoreConfiguration : IGooglePlayConfiguration, IStoreConfiguration

    Methods

    SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action<Product>)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Set listener for deferred subscription change events. Deferred subscription changes only take effect at the renewal cycle and no transaction is done immediately, therefore there is no receipt nor token.

    Declaration
    public void SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action<Product> action)
    Parameters
    Type Name Description
    Action<Product> action

    Deferred subscription change event. No payout is granted here. Instead, notify the user that the subscription change will take effect at the next renewal cycle.

    Implements
    IGooglePlayConfiguration.SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action<Product>)

    SetDeferredPurchaseListener(Action<Product>)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Set listener for deferred purchasing events. Deferred purchasing is enabled by default and cannot be changed.

    Declaration
    public void SetDeferredPurchaseListener(Action<Product> action)
    Parameters
    Type Name Description
    Action<Product> action

    Deferred purchasing successful events. Do not grant the item here. Instead, record the purchase and remind the user to complete the transaction in the Play Store.

    Implements
    IGooglePlayConfiguration.SetDeferredPurchaseListener(Action<Product>)

    SetFetchPurchasesAtInitialize(Boolean)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Set behavior at initialization of fetching purchase data. Use before calling UnityPurchasing.Initialize.Initialize.

    Disable to prevent IStoreListener.ProcessPurchase.ProcessPurchase from automatically returning entitled purchases at initialization. This allows greater control when tracking the origin of purchases. Then use IGooglePlayStoreExtensions.RestoreTransactions.RestoreTransactions to fetch as-yet unseen entitled purchases.

    Default is true.

    Declaration
    public void SetFetchPurchasesAtInitialize(bool enable)
    Parameters
    Type Name Description
    Boolean enable
    Implements
    IGooglePlayConfiguration.SetFetchPurchasesAtInitialize(Boolean)

    SetObfuscatedAccountId(String)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Optional obfuscation string to detect irregular activities when making a purchase. For more information please visit https://developer.android.com/google/play/billing/security

    Declaration
    public void SetObfuscatedAccountId(string accountId)
    Parameters
    Type Name Description
    String accountId

    The obfuscated account id

    Implements
    IGooglePlayConfiguration.SetObfuscatedAccountId(String)

    SetObfuscatedProfileId(String)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Optional obfuscation string to detect irregular activities when making a purchase For more information please visit https://developer.android.com/google/play/billing/security

    Declaration
    public void SetObfuscatedProfileId(string profileId)
    Parameters
    Type Name Description
    String profileId

    The obfuscated profile id

    Implements
    IGooglePlayConfiguration.SetObfuscatedProfileId(String)

    SetQueryProductDetailsFailedListener(Action<Int32>)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Set an optional listener for failures when querying product details.

    Declaration
    public void SetQueryProductDetailsFailedListener(Action<int> action)
    Parameters
    Type Name Description
    Action<Int32> action

    Will never be called because this is a fake.

    Implements
    IGooglePlayConfiguration.SetQueryProductDetailsFailedListener(Action<Int32>)

    SetServiceDisconnectAtInitializeListener(Action)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Set an optional listener for failures when connecting to the base Google Play Billing service.

    Declaration
    public void SetServiceDisconnectAtInitializeListener(Action action)
    Parameters
    Type Name Description
    Action action

    Will never be called because this is a fake.

    Implements
    IGooglePlayConfiguration.SetServiceDisconnectAtInitializeListener(Action)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)