Mac Developer Library

Developer

StoreKit Framework Reference SKProductsRequest Class Reference

Options
Deployment Target:

On This Page
Language:

SKProductsRequest

An SKProductsRequest object is used to retrieve localized information about a list of products from the Apple App Store. Your application uses this request to present localized prices and other information to the user without having to maintain that list itself.

To use an SKProductsRequest object, you initialize it with a list of product identifier strings, attach a delegate, and then call the request’s start method. When the request completes, your delegate receives an SKProductsResponse object.

Inheritance


Conforms To


Import Statement


Swift

import StoreKit

Objective-C

@import StoreKit;

Availability


Available in OS X v10.7 and later.
  • Initializes the request with the set of product identifiers.

    Declaration

    Swift

    init!(productIdentifiers productIdentifiers: NSSet!)

    Objective-C

    - (id)initWithProductIdentifiers:(NSSet *)productIdentifiers

    Parameters

    productIdentifiers

    The list of product identifiers for the products you wish to retrieve descriptions of.

    Return Value

    The initialized request object.

    Import Statement

    Objective-C

    @import StoreKit;

    Swift

    import StoreKit

    Availability

    Available in OS X v10.7 and later.