docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IStoreService

    A service responsible for connecting to a store and its extensions.

    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    public interface IStoreService

    Properties

    Apple

    Apple Specific Store Extensions

    Declaration
    IAppleStoreExtendedService? Apple { get; }
    Property Value
    Type Description
    IAppleStoreExtendedService

    Google

    Google Specific Store Extensions

    Declaration
    IGooglePlayStoreExtendedService? Google { get; }
    Property Value
    Type Description
    IGooglePlayStoreExtendedService

    Methods

    Connect()

    Initiates a connection to the store.

    Declaration
    Task Connect()
    Returns
    Type Description
    Task

    Return a handle to the initialization operation.

    SetStoreReconnectionRetryPolicyOnDisconnection(IRetryPolicy?)

    Set a custom reconnection policy when the store disconnects.

    Declaration
    void SetStoreReconnectionRetryPolicyOnDisconnection(IRetryPolicy? retryPolicy)
    Parameters
    Type Name Description
    IRetryPolicy retryPolicy

    The policy that will be used to determine if reconnection should be attempted.

    Events

    OnStoreDisconnected

    Callback when connection is lost to the current store.

    Declaration
    event Action<StoreConnectionFailureDescription>? OnStoreDisconnected
    Event Type
    Type Description
    Action<StoreConnectionFailureDescription>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)