IsFreeTrial

Description

Check if this product is a free trial.

A canceled subscription means the Product is currently subscribed, but will not renew on the next billing date.

Products in the Google Play store return Result.Unsupported if the application does not support version 6+ of the Android in-app billing API. Non-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 a Result.True or Result.False value.

Declaration

public static Result IsFreeTrial(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 a free trial

Example

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

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

Last updated