docs.unity3d.com
    Show / Hide Table of Contents

    Class FakeGooglePlayStoreExtensions

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Access GooglePlay store specific functionality.

    Inheritance
    Object
    FakeGooglePlayStoreExtensions
    Namespace: UnityEngine.Purchasing
    Syntax
    public class FakeGooglePlayStoreExtensions : IGooglePlayStoreExtensions, IStoreExtension

    Methods

    ConfirmSubscriptionPriceChange(String, Action<Boolean>)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Initiate a flow to confirm the change of price for an item subscribed by the user.

    Declaration
    public void ConfirmSubscriptionPriceChange(string productId, Action<bool> callback)
    Parameters
    Type Name Description
    String productId

    Product id

    Action<Boolean> callback

    Price changed event finished successfully

    Implements
    IGooglePlayStoreExtensions.ConfirmSubscriptionPriceChange(String, Action<Boolean>)

    EndConnection()

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Disconnects the implementation from the underlying Google Play Billing Library. Use for diagnostic or resource allocation purposes.

    Declaration
    public void EndConnection()

    FinishAdditionalTransaction(String, String)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Executes the same code as GooglePlayStore.FinishTransaction.

    Declaration
    public void FinishAdditionalTransaction(string productId, string transactionId)
    Parameters
    Type Name Description
    String productId

    Products id / sku

    String transactionId

    Products transaction id

    Implements
    IGooglePlayStoreExtensions.FinishAdditionalTransaction(String, String)

    GetProductJSONDictionary()

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    GetProductJSONDictionary is deprecated, nothing will be returns and no code will be executed. Will be removed soon. Use the GoogleProductMetadata of product.metadata.GetGoogleProductMetadata() from IStoreController.products

    Declaration
    public Dictionary<string, string> GetProductJSONDictionary()
    Returns
    Type Description
    Dictionary<String, String>

    null

    Implements
    IGooglePlayStoreExtensions.GetProductJSONDictionary()

    IsOwned(Product)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    IsOwned is deprecated, false will be returned by default and no code will be executed. Will be removed soon.

    Declaration
    public bool IsOwned(Product p)
    Parameters
    Type Name Description
    Product p

    deprecated

    Returns
    Type Description
    Boolean

    false

    Implements
    IGooglePlayStoreExtensions.IsOwned(Product)

    RestoreTransactions(Action<Boolean>)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Async call to the google store to queryPurchases using all the different support sku types.

    Declaration
    public void RestoreTransactions(Action<bool> callback)
    Parameters
    Type Name Description
    Action<Boolean> callback

    Will be called as often as many purchases the queryPurchases finds. (the IStoreCallback will be called as well)

    Implements
    IGooglePlayStoreExtensions.RestoreTransactions(Action<Boolean>)

    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
    IGooglePlayStoreExtensions.SetDeferredPurchaseListener(Action<Product>)

    SetLogLevel(Int32)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    SetLogLevel is deprecated, no code will be executed. Will be removed soon.

    Declaration
    public void SetLogLevel(int level)
    Parameters
    Type Name Description
    Int32 level

    deprecated

    Implements
    IGooglePlayStoreExtensions.SetLogLevel(Int32)

    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
    IGooglePlayStoreExtensions.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
    IGooglePlayStoreExtensions.SetObfuscatedProfileId(String)

    UpgradeDowngradeSubscription(String, String)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Upgrade or downgrade subscriptions, with proration mode IMMEDIATE_WITHOUT_PRORATION by default See more

    Declaration
    public void UpgradeDowngradeSubscription(string oldSku, string newSku)
    Parameters
    Type Name Description
    String oldSku

    current subscription

    String newSku

    new subscription to subscribe

    Implements
    IGooglePlayStoreExtensions.UpgradeDowngradeSubscription(String, String)

    UpgradeDowngradeSubscription(String, String, Int32)

    THIS IS A FAKE, NO CODE WILL BE EXECUTED!

    Upgrade or downgrade subscriptions

    Declaration
    public void UpgradeDowngradeSubscription(string oldSku, string newSku, int desiredProrationMode)
    Parameters
    Type Name Description
    String oldSku

    current subscription

    String newSku

    new subscription to subscribe

    Int32 desiredProrationMode

    Specifies the mode of proration. See more

    Implements
    IGooglePlayStoreExtensions.UpgradeDowngradeSubscription(String, String, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023