Class

SKProductSubscriptionPeriod

An object containing the subscription period duration information.

Declaration

class SKProductSubscriptionPeriod : NSObject

Overview

A subscription period is a duration of time defined as some number of units, where a unit can be a SKProduct.PeriodUnit.day, SKProduct.PeriodUnit.week, SKProduct.PeriodUnit.month, or SKProduct.PeriodUnit.year.

For example, a subscription period of two weeks has a unit of a SKProduct.PeriodUnit.week, and a numberOfUnits equal to 2.

Topics

Getting Subscription Period Details

var numberOfUnits: Int

The number of units per subscription period.

var unit: SKProduct.PeriodUnit

The increment of time that a subscription period is specified in.

enum SKProduct.PeriodUnit

Values representing the duration of an interval, from a day up to a year.

Relationships

Inherits From

Conforms To

See Also

Getting Subscription Information

var subscriptionGroupIdentifier: String?

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

var subscriptionPeriod: SKProductSubscriptionPeriod?

The period details for products that are subscriptions.

enum SKProduct.PeriodUnit

Values representing the duration of an interval, from a day up to a year.