Instance Property

downloads

An array of download objects representing the downloadable content associated with the transaction.

Declaration

var downloads: [SKDownload] { get }

Discussion

The contents of this property are undefined except when transactionState is set to SKPaymentTransactionState.purchased. The SKDownload objects stored in this property must be used to download the transaction’s content before the transaction is finished. After the transaction is finished, the download objects are no longer queueable.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software