コード例 #1
0
    private void OnBillingSupported(string inventory)
    {
        OpenIAB_iOS.CreateInventory(inventory);

        if (billingSupportedEvent != null)
        {
            billingSupportedEvent();
        }
    }
コード例 #2
0
    private void OnBillingSupported(string productIdentifiers)
    {
        string[] delimiters  = new string[] { ";" };
        string[] identifiers = productIdentifiers.Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);

        OnePF.StoreKitProduct[] productArray = new OnePF.StoreKitProduct[identifiers.Length];
        int index = 0;

        foreach (string identifier in identifiers)
        {
            productArray[index] = OpenIAB_iOS.detailsForProductWithIdentifier(identifier);
            index++;
        }

        OpenIAB_iOS.CreateInventory(productArray);

        if (billingSupportedEvent != null)
        {
            billingSupportedEvent();
        }
    }