Interface IWindowsIAP
Interface for Universal Windows Platform purchasing calls.
Namespace: UnityEngine .Purchasing.Default
Assembly: solution.dll
Syntax
public interface IWindowsIAP
Methods
BuildDummyProducts(List<WinProductDescription>)
Builds a set of local products to be used as a proxy for what's on the Windows Store.
Declaration
void BuildDummyProducts(List<WinProductDescription> products)
Parameters
Type | Name | Description |
---|---|---|
List<Win |
products | The products used. |
FinaliseTransaction(string)
Finalizes a transaction.
Declaration
void FinaliseTransaction(string transactionId)
Parameters
Type | Name | Description |
---|---|---|
string | transactionId | The ID of transaction to be finalzed. |
Initialize(IWindowsIAPCallback)
Initializes the Windows Store.
Declaration
void Initialize(IWindowsIAPCallback callback)
Parameters
Type | Name | Description |
---|---|---|
IWindows |
callback | The implementation of |
Purchase(string)
Purchases a product.
Declaration
void Purchase(string productId)
Parameters
Type | Name | Description |
---|---|---|
string | productId | The ID product to be purchased. |
RetrieveProducts(bool)
Retrieve products from the Windows Store.
Declaration
void RetrieveProducts(bool retryIfOffline)
Parameters
Type | Name | Description |
---|---|---|
bool | retryIfOffline | Whether or not to retry the retrieval if it fails due to lack of an Internet connection. |