iOS Developer Library

Developer

StoreKit Framework Reference SKProductsResponse Reference

Options
Deployment Target:

On This Page
Language:

SKProductsResponse

Inherits From


Conforms To


Import Statement


Swift

import StoreKit

Objective-C

@import StoreKit;

Availability


Available in iOS 3.0 and later

An SKProductsResponse object is returned by the Apple App Store in response to a request for information about a list of products.

  • products products Property

    A list of products, one product for each valid product identifier provided in the original request. (read-only)

    Declaration

    Swift

    var products: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *products

    Discussion

    The array consists of a list of SKProduct objects.

    Import Statement

    Objective-C

    @import StoreKit;

    Swift

    import StoreKit

    Availability

    Available in iOS 3.0 and later

  • An array of product identifier strings that were not recognized by the Apple App Store. (read-only)

    Declaration

    Swift

    var invalidProductIdentifiers: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *invalidProductIdentifiers

    Discussion

    This list should typically be empty.

    Import Statement

    Objective-C

    @import StoreKit;

    Swift

    import StoreKit

    Availability

    Available in iOS 3.0 and later