Documentation Archive Developer
Search

StoreKit Changes for Objective-C

StoreKit

SKDownload.h

Declaration
From
@property(readonly) NSString *contentIdentifier
To
@property(readonly, nonnull) NSString *contentIdentifier

Declaration
From
@property(copy, readonly) NSNumber *contentLength
To
@property(copy, readonly, nonnull) NSNumber *contentLength

Declaration
From
@property(copy, readonly) NSURL *contentURL
To
@property(copy, readonly, nullable) NSURL *contentURL

Declaration
From
+ (NSURL *)contentURLForProductID:(NSString *)productID
To
+ (NSURL * _Nullable)contentURLForProductID:(NSString * _Nonnull)productID

Declaration
From
@property(copy, readonly) NSString *contentVersion
To
@property(copy, readonly, nullable) NSString *contentVersion

Declaration
From
+ (void)deleteContentForProductID:(NSString *)productID
To
+ (void)deleteContentForProductID:(NSString * _Nonnull)productID

Declaration
From
@property(copy, readonly) NSError *error
To
@property(copy, readonly, nullable) NSError *error

SKPayment.h

Declaration
From
@property(nonatomic, copy, readwrite) NSString *applicationUsername
To
@property(nonatomic, copy, readwrite, nullable) NSString *applicationUsername

Declaration
From
@property(copy, readwrite) NSString *productIdentifier
To
@property(copy, readwrite, nonnull) NSString *productIdentifier

Declaration
From
@property(copy, readwrite) NSData *requestData
To
@property(copy, readwrite, nullable) NSData *requestData

Declaration
From
@property(nonatomic, copy, readonly) NSString *applicationUsername
To
@property(nonatomic, copy, readonly, nullable) NSString *applicationUsername

Declaration
From
+ (id)paymentWithProduct:(SKProduct *)product
To
+ (id _Nonnull)paymentWithProduct:(SKProduct * _Nonnull)product

Declaration
From
@property(copy, readonly) NSString *productIdentifier
To
@property(copy, readonly, nonnull) NSString *productIdentifier

Declaration
From
@property(copy, readonly) NSData *requestData
To
@property(copy, readonly, nullable) NSData *requestData

SKPaymentQueue.h

Declaration
From
- (void)addPayment:(SKPayment *)payment
To
- (void)addPayment:(SKPayment * _Nonnull)payment

Declaration
From
- (void)addTransactionObserver:(id<SKPaymentTransactionObserver>)observer
To
- (void)addTransactionObserver:(id<SKPaymentTransactionObserver> _Nonnull)observer

Declaration
From
- (void)cancelDownloads:(NSArray *)downloads
To
- (void)cancelDownloads:(NSArray<SKDownload *> * _Nonnull)downloads

Declaration
From
+ (SKPaymentQueue *)defaultQueue
To
+ (SKPaymentQueue * _Nonnull)defaultQueue

Declaration
From
- (void)finishTransaction:(SKPaymentTransaction *)transaction
To
- (void)finishTransaction:(SKPaymentTransaction * _Nonnull)transaction

Declaration
From
- (void)pauseDownloads:(NSArray *)downloads
To
- (void)pauseDownloads:(NSArray<SKDownload *> * _Nonnull)downloads

Declaration
From
- (void)removeTransactionObserver:(id<SKPaymentTransactionObserver>)observer
To
- (void)removeTransactionObserver:(id<SKPaymentTransactionObserver> _Nonnull)observer

Declaration
From
- (void)restoreCompletedTransactionsWithApplicationUsername:(NSString *)username
To
- (void)restoreCompletedTransactionsWithApplicationUsername:(NSString * _Nullable)username

Declaration
From
- (void)resumeDownloads:(NSArray *)downloads
To
- (void)resumeDownloads:(NSArray<SKDownload *> * _Nonnull)downloads

Declaration
From
- (void)startDownloads:(NSArray *)downloads
To
- (void)startDownloads:(NSArray<SKDownload *> * _Nonnull)downloads

Declaration
From
@property(readonly) NSArray *transactions
To
@property(readonly, nullable) NSArray<SKPaymentTransaction *> *transactions

Declaration
From
- (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions
To
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue removedTransactions:(NSArray<SKPaymentTransaction *> * _Nonnull)transactions

Declaration
From
- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error
To
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue restoreCompletedTransactionsFailedWithError:(NSError * _Nonnull)error

Declaration
From
- (void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray *)downloads
To
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue updatedDownloads:(NSArray<SKDownload *> * _Nonnull)downloads

Declaration
From
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
To
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue updatedTransactions:(NSArray<SKPaymentTransaction *> * _Nonnull)transactions

Declaration
From
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
To
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue * _Nonnull)queue

SKPaymentTransaction.h

Declaration
From
@property(readonly) NSArray *downloads
To
@property(readonly, nullable) NSArray *downloads

Declaration
From
@property(readonly) NSError *error
To
@property(readonly, nullable) NSError *error

Declaration
From
@property(readonly) SKPaymentTransaction *originalTransaction
To
@property(readonly, nullable) SKPaymentTransaction *originalTransaction

Declaration
From
@property(readonly) SKPayment *payment
To
@property(readonly, nonnull) SKPayment *payment

Declaration
From
@property(readonly) NSDate *transactionDate
To
@property(readonly, nullable) NSDate *transactionDate

Declaration
From
@property(readonly) NSString *transactionIdentifier
To
@property(readonly, nullable) NSString *transactionIdentifier

SKProduct.h

Declaration
From
@property(readonly) NSArray *contentLengths
To
@property(readonly, nullable) NSArray<NSNumber *> *contentLengths

Declaration
From
@property(readonly) NSString *contentVersion
To
@property(readonly, nullable) NSString *contentVersion

Declaration
From
@property(readonly) NSString *localizedDescription
To
@property(readonly, nullable) NSString *localizedDescription

Declaration
From
@property(readonly) NSString *localizedTitle
To
@property(readonly, nullable) NSString *localizedTitle

Declaration
From
@property(readonly) NSDecimalNumber *price
To
@property(readonly, nullable) NSDecimalNumber *price

Declaration
From
@property(readonly) NSLocale *priceLocale
To
@property(readonly, nullable) NSLocale *priceLocale

Declaration
From
@property(readonly) NSString *productIdentifier
To
@property(readonly, nullable) NSString *productIdentifier

SKProductsRequest.h

Declaration
From
@property(assign) id<SKProductsRequestDelegate> delegate
To
@property(assign, nullable) id<SKProductsRequestDelegate> delegate

Declaration
From
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers
To
- (id _Nonnull)initWithProductIdentifiers:(NSSet * _Nonnull)productIdentifiers

Declaration
From
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
To
- (void)productsRequest:(SKProductsRequest * _Nonnull)request didReceiveResponse:(SKProductsResponse * _Nonnull)response

Declaration
From
@property(readonly) NSArray *invalidProductIdentifiers
To
@property(readonly, nullable) NSArray<NSString *> *invalidProductIdentifiers

Declaration
From
@property(readonly) NSArray *products
To
@property(readonly, nullable) NSArray<SKProduct *> *products

SKReceiptRefreshRequest.h

Declaration
From
- (id)initWithReceiptProperties:(NSDictionary *)properties
To
- (id _Nullable)initWithReceiptProperties:(NSDictionary<NSString *,id> * _Nonnull)properties

Declaration
From
@property(nonatomic, readonly) NSDictionary *receiptProperties
To
@property(nonatomic, readonly, nullable) NSDictionary<NSString *,id> *receiptProperties

SKRequest.h

Declaration
From
@property(assign) id<SKRequestDelegate> delegate
To
@property(assign, nullable) id<SKRequestDelegate> delegate

Declaration
From
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
To
- (void)request:(SKRequest * _Nonnull)request didFailWithError:(NSError * _Nullable)error

Declaration
From
- (void)requestDidFinish:(SKRequest *)request
To
- (void)requestDidFinish:(SKRequest * _Nonnull)request