GetSubscriptions() | (none) | List<PlayerSubscription> | Returns all subscriptions (active and expired). |
GetActiveSubscriptions() | (none) | List<PlayerSubscription> | Returns only the active subscriptions. |
GetSubscriptionById(id) | string | PlayerSubscription? | Returns the subscription with this ID. |
GetSubscriptionByItemCode(code) | string | PlayerSubscription? | Returns the most recent subscription for the product code. |
GetSubscriptionByItemId(itemId) | string | PlayerSubscription? | Returns the most recent subscription for the product ID (UUID). |
GetSubscriptionByItemSku(sku) | string | PlayerSubscription? | Returns the most recent subscription for the SKU. |
GetSubscriptionsByType(type) | string | List<PlayerSubscription> | Returns the subscriptions of this type. |
HasActiveSubscription() | (none) | bool | Returns true for one or more active subscriptions. |
HasActiveSubscriptionOfType(type) | string | bool | Returns true for one or more active subscriptions of this type. |
Refresh() | (none) | void | Reads the latest data from the server. |
AddListener(listener) | Action | void | Calls the listener on each change of the state. |
RemoveListener(listener) | Action | void | Deletes the listener. |