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