docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExtensibleStoreService

    An abstract store service to extend an existing Store Service which will handle all of the basic IStoreService implementations The main purpose of this is to allow a custom store to add implementations of extended features to this service. The calls to IStoreService are kept virtual so that the derivations of the base store implementing them can be added to or overridden.

    Inheritance
    object
    ExtensibleStoreService
    Implements
    IStoreService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    public abstract class ExtensibleStoreService : IStoreService

    Constructors

    ExtensibleStoreService(IStoreService)

    Constructor to be used by derived classes

    Declaration
    protected ExtensibleStoreService(IStoreService baseStoreService)
    Parameters
    Type Name Description
    IStoreService baseStoreService

    The base service implementation which implements IStoreService

    Properties

    Apple

    Apple Specific Store Extensions

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

    Google

    Google Specific Store Extensions

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

    Methods

    Connect()

    Initiates a connection to the store.

    Declaration
    public virtual 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
    public virtual 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 for when the store disconnects.

    Declaration
    public event Action<StoreConnectionFailureDescription>? OnStoreDisconnected
    Event Type
    Type Description
    Action<StoreConnectionFailureDescription>

    Implements

    IStoreService
    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)