Interface IAppleStoreExtendedProductService
A public interface for the Apple Store product service extension.
Namespace: UnityEngine .Purchasing
Assembly: Unity.Purchasing.dll
Syntax
public interface IAppleStoreExtendedProductService : IProductServiceExtension
Methods
FetchStorePromotionOrder(Action<List<Product>>, Action<string>)
Returns the current promoted product order on the device
Declaration
void FetchStorePromotionOrder(Action<List<Product>> successCallback, Action<string> errorCallback)
Parameters
Type | Name | Description |
---|---|---|
Action<List<Product>> | successCallback | This action will be called when the fetch is successful. The list of products will be passed through. |
Action<string> | errorCallback | This action will be called when the fetch is in error. The error will be passed through. |
FetchStorePromotionVisibility(Product, Action<string, AppleStorePromotionVisibility>, Action<string>)
Returns the current promoted product order on the device
Declaration
void FetchStorePromotionVisibility(Product product, Action<string, AppleStorePromotionVisibility> successCallback, Action<string> errorCallback)
Parameters
Type | Name | Description |
---|---|---|
Product | product | Product to change visibility. |
Action<string, Apple |
successCallback | This action will be called when the fetch is successful. The productId and visibility will be passed through. |
Action<string> | errorCallback | This action will be called when the fetch is in error. The error will be passed through. |
GetIntroductoryPriceDictionary()
Extracting Introductory Price subscription related product details.
Declaration
Dictionary<string, string> GetIntroductoryPriceDictionary()
Returns
Type | Description |
---|---|
Dictionary<string, string> | returns the Introductory Price subscription related product details or an empty dictionary |
GetProductDetails()
Extracting product details.
Declaration
Dictionary<string, string> GetProductDetails()
Returns
Type | Description |
---|---|
Dictionary<string, string> | returns product details or an empty dictionary |
SetStorePromotionOrder(List<Product>)
Overrides the promoted product order on the device.
Declaration
void SetStorePromotionOrder(List<Product> products)
Parameters
SetStorePromotionVisibility(Product, AppleStorePromotionVisibility)
Override the visibility of a product on the device.
Declaration
void SetStorePromotionVisibility(Product product, AppleStorePromotionVisibility visible)
Parameters
Type | Name | Description |
---|---|---|
Product | product | Product to change visibility. |
Apple |
visible | The new product visibility. |