|
AdaptySDK 4.4.0
|
How a subscription is paid for: all at once, or in installments over a commitment. More...
Public Member Functions | |
| AdaptySubscriptionBillingPlan (string rawValue) | |
| Creates a plan from its identifier — for a plan added after the shared instances were snapshotted. | |
| bool | Equals (AdaptySubscriptionBillingPlan other) |
| Whether the other plan carries the same identifier. | |
| override bool | Equals (object obj) |
| Whether the other object is a plan carrying the same identifier. | |
| override int | GetHashCode () |
| The hash code of the identifier. | |
| override string | ToString () |
| The identifier itself. | |
Static Public Member Functions | |
| static bool | operator== (AdaptySubscriptionBillingPlan a, AdaptySubscriptionBillingPlan b) |
| Whether both plans carry the same identifier, or both are null. | |
| static bool | operator!= (AdaptySubscriptionBillingPlan a, AdaptySubscriptionBillingPlan b) |
| Whether the plans carry different identifiers, or exactly one is null. | |
Public Attributes | |
| readonly string | RawValue |
| The identifier the native SDK reports the plan by. | |
Static Public Attributes | |
| static readonly AdaptySubscriptionBillingPlan | UpFront = new("up_front") |
| The whole subscription period is charged at once. | |
| static readonly AdaptySubscriptionBillingPlan | Monthly = new("monthly") |
| The commitment is charged in monthly installments. iOS 26.4+ only. | |
How a subscription is paid for: all at once, or in installments over a commitment.
The shared instances are the plans known when this SDK version was released, not the limit: a plan StoreKit or the native SDK adds later arrives with its own RawValue rather than being mapped to one of them.
| AdaptySDK.AdaptySubscriptionBillingPlan.AdaptySubscriptionBillingPlan | ( | string | rawValue | ) |
Creates a plan from its identifier — for a plan added after the shared instances were snapshotted.
| rawValue | The identifier the native SDK reports the plan by. |
| ArgumentNullException | The identifier is null. |
| bool AdaptySDK.AdaptySubscriptionBillingPlan.Equals | ( | AdaptySubscriptionBillingPlan | other | ) |
Whether the other plan carries the same identifier.
| other | The plan to compare with. |
| override bool AdaptySDK.AdaptySubscriptionBillingPlan.Equals | ( | object | obj | ) |
Whether the other object is a plan carrying the same identifier.
| obj | The object to compare with. |
| override int AdaptySDK.AdaptySubscriptionBillingPlan.GetHashCode | ( | ) |
The hash code of the identifier.
|
static |
Whether the plans carry different identifiers, or exactly one is null.
| a | The left plan. |
| b | The right plan. |
|
static |
Whether both plans carry the same identifier, or both are null.
| a | The left plan. |
| b | The right plan. |
| override string AdaptySDK.AdaptySubscriptionBillingPlan.ToString | ( | ) |
The identifier itself.
|
static |
The commitment is charged in monthly installments. iOS 26.4+ only.
| readonly string AdaptySDK.AdaptySubscriptionBillingPlan.RawValue |
The identifier the native SDK reports the plan by.
|
static |
The whole subscription period is charged at once.