Instance Property

subscriptionPeriod

An object that defines the period for the product discount.

Declaration

@property(nonatomic, readonly) SKProductSubscriptionPeriod *subscriptionPeriod;

Discussion

This object represents the duration of a single subscription period. A period is described as a number of units, where a unit can be a SKProductPeriodUnitDay, SKProductPeriodUnitMonth, SKProductPeriodUnitWeek, or SKProductPeriodUnitYear.

To calculate the total amount of time that the discount price is available to the user, multiply the subscriptionPeriod by numberOfPeriods.

See Also

Getting the Discount Duration

numberOfPeriods

An integer that indicates the number of periods the product discount is available.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software