docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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, AppleStorePromotionVisibility> 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 from the last successful FetchProducts request.

    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
    Type Name Description
    List<Product> products

    The new order of promoted products for the device.

    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.

    AppleStorePromotionVisibility visible

    The new product visibility.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)