Class SubscriptionInfo
A container for a Product’s subscription-related information.
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
public class SubscriptionInfo
Constructors
Name | Description |
---|---|
Subscription |
Especially crucial values relating to subscription products. Note this is intended to be called internally. |
Subscription |
Especially crucial values relating to Google subscription products. Note this is intended to be called internally. |
Subscription |
Unpack Apple receipt subscription data. |
Methods
Name | Description |
---|---|
get |
When this auto-renewable receipt was canceled. Note the store-specific behavior. |
get |
When this auto-renewable receipt expires. |
get |
The period duration of the free trial for this subscription, if enabled. Note the store-specific behavior. |
get |
The string representation of the period in ISO8601 format this subscription is free for. Note the store-specific behavior. |
get |
For subscriptions with an introductory price, get this price. Note the store-specific behavior. |
get |
Indicates how much time remains for the introductory price period. Note the store-specific behavior. |
get |
Indicates the number of introductory price billing periods that can be applied to this subscription Product. Note the store-specific behavior. |
get |
Store specific product identifier. |
get |
A date this subscription was billed. Note the store-specific behavior. |
get |
Indicates how much time remains until the next billing date. Note the store-specific behavior. Note also that the receipt may update and change this subscription expiration status if the user sends their iOS app to the background and then returns it to the foreground. |
get |
The raw JSON SkuDetails from the underlying Google API. Note the store-specific behavior. Note this is not supported. |
get |
A JSON including a collection of data involving free-trial and introductory prices. Note the store-specific behavior. Used internally for subscription updating on Google store. |
get |
The duration of this subscription. Note the store-specific behavior. |
is |
Indicates whether this Product is expected to auto-renew. The product must be auto-renewable, not canceled, and not expired. |
is |
Indicates whether this Product has been cancelled. A cancelled subscription means the Product is currently subscribed, and will not renew on the next billing date. |
is |
Indicates whether this auto-renewable subscription Product is currently unsubscribed or not. Note the store-specific behavior. Note also that the receipt may update and change this subscription expiration status if the user sends their iOS app to the background and then returns it to the foreground. It is therefore recommended to remember subscription expiration state at app-launch, and ignore the fact that a subscription may expire later during this app launch runtime session. |
is |
Indicates whether this Product is a free trial. Note the store-specific behavior. |
is |
Indicates whether this Product is currently owned within an introductory price period. Note the store-specific behavior. |
is |
Indicates whether this auto-renewable subscription Product is currently subscribed or not. Note the store-specific behavior. Note also that the receipt may update and change this subscription expiration status if the user sends their iOS app to the background and then returns it to the foreground. It is therefore recommended to remember subscription expiration state at app-launch, and ignore the fact that a subscription may expire later during this app launch runtime session. |