IsIntroductoryPricePeriod

Description

Indicate whether this Product is within an introductory price period.

On-renewable Products in the Apple store return a Result.Unsupported value. Auto-renewable Products in the Apple store and subscription products in the Google Play store return Result.True or Result.False value. Products in the Google Play store return Result. Unsupported if the application does not support version 6+ of the Android in-app billing API.

Declaration

 public static Result IsIntroductoryPricePeriod(ShopProductNames product)

Parameters

NameDescription

product

An enum member is generated from the Settings Window.

Requires using Gley.EasyIAP;

Return

Result - indicate whether this Product is within an introductory price period.

Example

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

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

Last updated