GetExpireDate

Description

Returns the date of the Product’s next auto-renew or expiration (for a canceled auto-renewing subscription).

Products in the Google Play store return TimeSpan.MaxValue if the application does not support version 6+ of the Android in-app billing API.

Declaration

public static DateTime GetExpireDate(ShopProductNames product)

Parameters

NameDescription

product

An enum member generated from Settings Window.

Requires using Gley.EasyIAP;

Return

DateTime - The expiration date.

Example

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

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

Last updated