iOS Developer Library

Developer

StoreKit Framework Reference SKRequest Class Reference

Options
Deployment Target:

On This Page
Language:

SKRequest

SKRequest is an abstract class representing a request to the Apple App Store. Subclasses of SKRequest represent different kinds of requests. More...

Conforms To


Import Statement


import StoreKit @import StoreKit;

Availability


Available in iOS 3.0 and later.
  • Sends the request to the Apple App Store.

    Declaration

    Swift

    func start()

    Objective-C

    - (void)start

    Discussion

    The results for a request are sent to the request’s delegate.

    Import Statement

    import StoreKit

    Availability

    Available in iOS 3.0 and later.

  • Cancels a previously started request.

    Declaration

    Swift

    func cancel()

    Objective-C

    - (void)cancel

    Discussion

    When you cancel a request, the delegate is not called with an error.

    Import Statement

    import StoreKit

    Availability

    Available in iOS 3.0 and later.

  • delegate delegate Property

    The delegate of the request object.

    Declaration

    Swift

    unowned(unsafe) var delegate: SKRequestDelegate!

    Objective-C

    @property(nonatomic, assign) id< SKRequestDelegate > delegate

    Discussion

    The delegate must adopt the SKRequestDelegate protocol, although most subclasses of SKRequest provide a more specific protocol to implement.

    Import Statement

    import StoreKit

    Availability

    Available in iOS 3.0 and later.