GetIntroductoryPricePeriodCycles

Description

Returns the number of introductory price periods that can be applied to this Product.

Products in the Apple store return 0 if the application does not support iOS version 11.2+, macOS 10.13.2+, or tvOS 11.2+.

Declaration

public static long GetIntroductoryPricePeriodCycles(ShopProductNames product)

Parameters

NameDescription

product

An enum member generated from Settings Window.

Requires using Gley.EasyIAP;

Return

long - the number of introductory price periods.

Example

Test.cs
using Gley.EasyIAP;
using UnityEngine.UI;

public class Test : MonoBehaviour
{
    [SerializeField] Text info; 
    public void GetValue()
    {
       info.text = Gley.EasyIAP.API.GetIntroductoryPricePeriodCycles(ShopProductNames.YourSubscription).ToString();
    }
}

Last updated