Interface IStoreListener
Implemented by Application developers using Unity Purchasing.
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
public interface IStoreListener
Methods
OnInitializeFailed(InitializationFailureReason)
Purchasing failed to initialise for a non recoverable reason.
Declaration
[Obsolete]
void OnInitializeFailed(InitializationFailureReason error)
Parameters
Type | Name | Description |
---|---|---|
Initialization |
error | The failure reason. |
OnInitializeFailed(InitializationFailureReason, string)
Purchasing failed to initialise for a non recoverable reason.
Declaration
void OnInitializeFailed(InitializationFailureReason error, string message)
Parameters
Type | Name | Description |
---|---|---|
Initialization |
error | The failure reason. |
string | message | More detail on the error : for example the GoogleBillingResponseCode. |
OnInitialized(IStoreController, IExtensionProvider)
Purchasing initialized successfully.
The IStoreController
and IExtensionProvider
are
available for accessing purchasing functionality.
Declaration
void OnInitialized(IStoreController controller, IExtensionProvider extensions)
Parameters
Type | Name | Description |
---|---|---|
IStore |
controller | The |
IExtension |
extensions | The |
OnPurchaseFailed(Product, PurchaseFailureReason)
A purchase failed with specified reason.
Declaration
[Obsolete("Use IDetailedStoreListener.OnPurchaseFailed for more detailed callback.", false)]
void OnPurchaseFailed(Product product, PurchaseFailureReason failureReason)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product that was attempted to be purchased. |
Purchase |
failureReason | The failure reason. |
ProcessPurchase(PurchaseEventArgs)
A purchase succeeded.
Declaration
PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs purchaseEvent)
Parameters
Type | Name | Description |
---|---|---|
Purchase |
purchaseEvent | The |
Returns
Type | Description |
---|---|
Purchase |
The result of the successful purchase |