SKProductSubscriptionPeriodWrapper class
Dart wrapper around StoreKit's SKProductSubscriptionPeriod.
A period is defined by a numberOfUnits and a unit, e.g for a 3 months period numberOfUnits is 3 and unit is a month. It is used as a property in SKProductDiscountWrapper and SKProductWrapper.
- Annotations
-
- @JsonSerializable()
- @immutable
Constructors
- SKProductSubscriptionPeriodWrapper({required int numberOfUnits, required SKSubscriptionPeriodUnit unit})
-
Creates an SKProductSubscriptionPeriodWrapper for a
numberOfUnits
xunit
period. -
SKProductSubscriptionPeriodWrapper.fromJson(Map<
String, dynamic> ? map) -
Constructing an instance from a map from the Objective-C layer.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- numberOfUnits → int
-
The number of unit units in this period.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → SKSubscriptionPeriodUnit
-
The time unit used to specify the length of this period.
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.
override
Static Methods
-
convertFromPigeon(
SKProductSubscriptionPeriodMessage msg) → SKProductSubscriptionPeriodWrapper -
Convert from
SKProductSubscriptionPeriodMessage
to SKProductSubscriptionPeriodWrapper -
convertToPigeon(
SKProductSubscriptionPeriodWrapper wrapper) → SKProductSubscriptionPeriodMessage -
Convert from SKProductSubscriptionPeriodWrapper to
SKProductSubscriptionPeriodMessage