SKRequest Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/StoreKit.framework
Availability
Available in iOS 3.0 and later.
Companion guide
Declared in
SKRequest.h

Overview

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

To use a request object, initialize a subclass of SKRequest and set the delegate property, then call the start method.

Tasks

Controlling the Request

Accessing the Delegate

Properties

delegate

The delegate of the request object.

@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.

Availability
  • Available in iOS 3.0 and later.
Declared In
SKRequest.h

Instance Methods

cancel

Cancels a previously started request.

- (void)cancel
Discussion

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

Availability
  • Available in iOS 3.0 and later.
Declared In
SKRequest.h

start

Sends the request to the Apple App Store.

- (void)start
Discussion

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

Availability
  • Available in iOS 3.0 and later.
Declared In
SKRequest.h