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.
Implements
Inherited Members
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 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> |