SK2SubscriptionOffer class

A wrapper around StoreKit2's SubscriptionOffer https://developer.apple.com/documentation/storekit/product/subscriptionoffer Information about a subscription offer on a product.

Constructors

SK2SubscriptionOffer({String? id, required double price, required SK2SubscriptionOfferType type, required SK2SubscriptionPeriod period, required int periodCount, required SK2SubscriptionOfferPaymentMode paymentMode})
Creates a new SK2SubscriptionOffer

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String?
The subscription offer identifier.
final
paymentMode → SK2SubscriptionOfferPaymentMode
The payment modes for subscription offers that apply to a transaction.
final
period → SK2SubscriptionPeriod
The subscription period for the subscription offer.
final
periodCount → int
The number of periods that the subscription offer renews for.
final
price → double
The decimal representation of the discounted price of the subscription offer.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → SK2SubscriptionOfferType
The type of subscription offer, either introductory or promotional.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited