Class

SKRequest

An abstract class that represents a request to the App Store.

Declaration

class SKRequest : NSObject

Overview

To make a request, initialize a subclass of SKRequest—such as SKProductsRequest or SKReceiptRefreshRequest—set the delegate property, and call the start() method.

Topics

Controlling the Request

func start()

Sends the request to the Apple App Store.

func cancel()

Cancels a previously started request.

Accessing the Delegate

var delegate: SKRequestDelegate?

The delegate of the request object.

protocol SKRequestDelegate

Common methods that are implemented by delegates for any subclass of the SKRequest abstract class.

Relationships

Inherits From

Conforms To

See Also

Essentials

Setting Up the Transaction Observer for the Payment Queue

Enable your app to receive and handle transactions by adding an observer.

Offering, Completing, and Restoring In-App Purchases

Fetch, complete, and restore transactions in your app.

class SKPaymentQueue

A queue of payment transactions to be processed by the App Store.

protocol SKPaymentTransactionObserver

A set of methods that process transactions, unlock purchased functionality, and continue promoted in-app purchases.

protocol SKPaymentQueueDelegate

The protocol implemented to provide information needed to complete transactions.