IsExpired

Description

Check if a product is expired or not.

* 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 IsExpired(ShopProductNames product)

Parameters

Return

Result - indicate whether this Product has expired or not

Example

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

public class Test : MonoBehaviour
{
    public void RemoveAccess()
    {
        if (Gley.EasyIAP.API.IsExpired(ShopProductNames.YourSubscription) == Result.True)
        {
            //remove access
        }
    }
}

Last updated