IsAutoRenewing

Description

Indicates if the product is auto-renewable.

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 IsAutoRenewing(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 auto-renewable.

Example

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

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

Last updated