RegisterIOSInAppPurchaseList() public static méthode

Register the price and currency that a user is using to make iOS in-app purchases.
After receiving the list of in-app purchases from Apple, this method can be called to record the localized item information. This overload is meant to be called from Unity's IStoreListener.OnInitialized callback passing in the first (controller) parameter.
public static RegisterIOSInAppPurchaseList ( IStoreController unityStoreController ) : void
unityStoreController IStoreController The IStoreController provided by Unity's IStoreListener.OnInitialized callback.
Résultat void
    private void onProductUpdated(List <MarketItem> items)
    {
#if UNITY_IOS
        FuseMisc.Product[] products = new FuseMisc.Product[items.Count];
        for (int i = 0; i < products.Length; i++)
        {
            products[i] = new FuseMisc.Product()
            {
                ProductId = items[i].ProductId, Price = (float)items[i].Price, PriceLocale = items[i].MarketCurrencyCode
            };
        }
        FuseSDK.RegisterIOSInAppPurchaseList(products);
#endif
    }
    void productListReceivedEvent(List <StoreKitProduct> productList)
    {
        FuseLog("productListReceivedEvent. total products received: " + productList.Count);

        // create an array of product info to pass into the Fuse API
        FuseMisc.Product[] products = new FuseMisc.Product[productList.Count];
        int numItems = 0;

        foreach (StoreKitProduct product in productList)
        {
            FuseMisc.Product currentProduct = new FuseMisc.Product();
            currentProduct.ProductId   = product.productIdentifier;
            currentProduct.PriceLocale = product.currencyCode;
            currentProduct.Price       = float.Parse(product.price);
            products.SetValue(currentProduct, numItems++);
            FuseLog(product.ToString() + "\n");
        }
        FuseSDK.RegisterIOSInAppPurchaseList(products);
    }