Class

SKProduct

Information about a product you previously registered in App Store Connect.

Overview

SKProduct objects are returned as part of an SKProductsResponse object.

Topics

Getting the Product Identifier

var productIdentifier: String

The string that identifies the product to the Apple App Store.

Getting Product Attributes

var localizedDescription: String

A description of the product.

var localizedTitle: String

The name of the product.

var contentVersion: String

A string that identifies the version of the content.

Deprecated
var contentLengths: [NSNumber]

The total size of the content, in bytes.

Deprecated

Getting Pricing Information

var price: NSDecimalNumber

The cost of the product in the local currency.

var priceLocale: Locale

The locale used to format the price of the product.

var introductoryPrice: SKProductDiscount?

The object containing introductory price information for the product.

Getting the Subscription Period and Duration

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.

Getting Downloadable Content Information

var isDownloadable: Bool

A Boolean value that indicates whether the App Store has downloadable content for this product.

var downloadContentLengths: [NSNumber]

The lengths of the downloadable files available for this product.

var downloadContentVersion: String

A string that identifies which version of the content is available for download.

Relationships

Inherits From

Conforms To

See Also

Retrieving Product Information

class SKProductsRequest

An object that can retrieve localized information from the App Store about a specified list of products.

class SKProductsResponse

An App Store response to a request for information about a list of products.

class SKProductSubscriptionPeriod

An object containing the subscription period duration information.

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