GetSubscriptionPeriod

Description

Return the subscription period.

Declaration

public static TimeSpan GetSubscriptionPeriod(ShopProductNames product)

Parameters

NameDescription

product

An enum member is generated from the Settings Window.

Requires using Gley.EasyIAP;

Return

TimeSpan - The subscription 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.GetSubscriptionPeriod(ShopProductNames.YourSubscription).ToString();
    }
}

Last updated