AdaptySDK 4.4.0
Loading...
Searching...
No Matches
AdaptySDK.AdaptySubscription Class Referencesealed

What a product's subscription looks like: its period, its offer, and how it renews. More...

Public Member Functions

override string ToString ()
 A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Public Attributes

readonly string GroupIdentifier
 The identifier of the subscription group to which the subscription belongs.
readonly AdaptySubscriptionPeriod Period
 A ProductSubscriptionPeriodModel object. The period details for products that are subscriptions.
readonly string LocalizedPeriod
 Localized subscription period of the product — on iOS, of the whole commitment, like Period.
readonly AdaptySubscriptionPricingTerms PricingTerms
 iOS only. How the subscription is billed: its plan, each payment, and the commitment. Null on Android.
readonly AdaptySubscriptionOffer Offer
 The discounted offer attached to this subscription, or null when it is at full price.
readonly AdaptySubscriptionRenewalType RenewalType
 Android only. Whether the subscription renews by itself.
readonly string BasePlanId
 Android only. The Google Play base plan this subscription is on. Null on iOS.

Detailed Description

What a product's subscription looks like: its period, its offer, and how it renews.

Member Function Documentation

◆ ToString()

override string AdaptySDK.AdaptySubscription.ToString ( )

A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Member Data Documentation

◆ BasePlanId

readonly string AdaptySDK.AdaptySubscription.BasePlanId

Android only. The Google Play base plan this subscription is on. Null on iOS.

◆ GroupIdentifier

readonly string AdaptySDK.AdaptySubscription.GroupIdentifier

The identifier of the subscription group to which the subscription belongs.

[Nullable]

◆ LocalizedPeriod

readonly string AdaptySDK.AdaptySubscription.LocalizedPeriod

Localized subscription period of the product — on iOS, of the whole commitment, like Period.

[Nullable]

◆ Offer

readonly AdaptySubscriptionOffer AdaptySDK.AdaptySubscription.Offer

The discounted offer attached to this subscription, or null when it is at full price.

◆ Period

readonly AdaptySubscriptionPeriod AdaptySDK.AdaptySubscription.Period

A ProductSubscriptionPeriodModel object. The period details for products that are subscriptions.

On iOS this is the period of the whole commitment: a year for a plan paid monthly. The time between payments is AdaptySubscriptionPricingTerms.BillingPeriod.

◆ PricingTerms

readonly AdaptySubscriptionPricingTerms AdaptySDK.AdaptySubscription.PricingTerms

iOS only. How the subscription is billed: its plan, each payment, and the commitment. Null on Android.

A plan other than AdaptySubscriptionBillingPlan.UpFront is offered only on iOS 26.4+ in an app built with Xcode 26.5+, in a storefront that offers it; anywhere else the product comes with its up-front terms and is bought up front. The purchase fails with AdaptyErrorCode.BillingPlanUnavailable only when StoreKit no longer offers the plan by the time the product is bought.

◆ RenewalType

readonly AdaptySubscriptionRenewalType AdaptySDK.AdaptySubscription.RenewalType
Initial value:
=
AdaptySubscriptionRenewalType
Android only. Whether the subscription renews by itself.
Definition AdaptySubscriptionRenewalType.cs:11

Android only. Whether the subscription renews by itself.


The documentation for this class was generated from the following file:
  • Packages/com.adapty.unity-sdk/Runtime/Models/AdaptySubscription.cs