GetRemainingTime

Description

Indicate how much time remains until the next billing date.

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 TimeSpan GetRemainingTime(ShopProductNames product)

Parameters

NameDescription

product

An enum member is generated from the Settings Window.

Requires using Gley.EasyIAP;

Return

TimeSpan - indicates how much time remains until the next billing 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.GetRemainingTime(ShopProductNames.YourSubscription).ToString();
    }
}

Last updated