ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
StoreKit¥¯¥é¥¹évßB‡í iOS6

                               <<protocol>>                                                                                 SKPayment                                               SKMutablePayment
                             SKRequestDelegate                                                             NSString *productIdenti?er                                        NSString *productIdenti?er
                                                                                                           NSInteger quantity                                                NSInteger quantity
  - (void)requestDidFinish:(SKRequest *)request
                                                                                                           NSData *requestData                                               NSData *requestData
  - (void)request:(SKRequest *)request didFailWithError:(NSError *)error
                                                                                                           + (id)paymentWithProduct:(SKProduct *)product

      SKProductsResponse
                                                        SKRequest
 NSArray *products                                                                                                               ?use?                      ?use?                       SKProduct
 NSArray *invalidProductIdenti?ers           id <SKRequestDelegate> delegate
                                                                                                                                                                             NSString *localizedDescription
                                             - (void)cancel                                                                     SKPaymentTransaction                         NSString *localizedTitle
                                             - (void)start                                                                                                                   NSDecimalNumber *price
                                                                                                                       NSError *error                                        NSLocale *priceLocale
                        ?use?                                                                                          SKPaymentTransaction *originalTransaction             NSString *productIdenti?er
                                                                                                                       SKPayment *payment
                                                                                                                       NSDate *transactionDate                               BOOL downloadable
                        SKProductRequest                                                                  ?use?
                                                                                                                                                                             NSArray *downloadContentLengths
                                                                                                                       NSString *transactionIdenti?er
      id <SKProductsRequestDelegate> delegate                                                                          NSData *transactionReceipt                            NSString *downloadContentVersion
                                                                                                                       SKPaymentTransactionState transactionState
      - (id)initWithProductIdenti?ers:(NSSet *)productIdenti?ers
                                                                                                                       NSArray *downloads



                         <<protocol>>
                   SKProductsRequestDelegate                                                                                     ?use?                               ?use?
                                                                                                                                                                                          SKDownload
    - (void)productsRequest:(SKProductsRequest *)request                                                              SKPaymentQueue                                           SKDownloadState downloadState
    didReceiveResponse:(SKProductsResponse *)response                                                                                                                          long long contentLength
                                                                                         NSArray *transactions                                                                 NSString *contentIdenti?er
                                                                                                                                                                               NSURL *contentURL
                                                                                         + (SKPaymentQueue *)defaultQueue                                                      NSString *contentVersion
                     SKStoreProductViewController                                        + (BOOL)canMakePayments                                                               NSError *error
                                                                                         - (void)addPayment:(SKPayment *)payment                                               ?oat progress
           id <SKStoreProductViewControllerDelegate> delegate                            - (void)restoreCompletedTransactions                                                  NSTimeInterval timeRemaining
                                                                                         - (void)?nishTransaction:(SKPaymentTransaction *)transaction                          SKPaymentTransaction *transaction
           - (void)loadProductWithParameters:(NSDictionary
                                                                                         - (void)addTransactionObserver:(id <SKPaymentTransactionObserver>)observer
           *)parameters completionBlock:(void(^)(BOOL result,
                                                                                         - (void)removeTransactionObserver:(id <SKPaymentTransactionObserver>)observer
           NSError *error))block
                                                                                         - (void)startDownloads:(NSArray *)downloads
                                                                                         - (void)pauseDownloads:(NSArray *)downloads
                                <<protocol>>                                             - (void)resumeDownloads:(NSArray *)downloads
                         SKPaymentTransactionObserver                                    - (void)cancelDownloads:(NSArray *)downloads

 - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController

                                                                                                                                                <<protocol>>
                                                                                                                                         SKPaymentTransactionObserver
                                                                   SKError                  - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
                                                                                            - (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions
                                                                                            - (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error
                                                                                            - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

                                                                                            - (void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray *)downloads
UMLœÊ’‡¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ by @naokits

More Related Content

Storekit diagram

  • 1. StoreKit¥¯¥é¥¹évßB‡í iOS6 <<protocol>> SKPayment SKMutablePayment SKRequestDelegate NSString *productIdenti?er NSString *productIdenti?er NSInteger quantity NSInteger quantity - (void)requestDidFinish:(SKRequest *)request NSData *requestData NSData *requestData - (void)request:(SKRequest *)request didFailWithError:(NSError *)error + (id)paymentWithProduct:(SKProduct *)product SKProductsResponse SKRequest NSArray *products ?use? ?use? SKProduct NSArray *invalidProductIdenti?ers id <SKRequestDelegate> delegate NSString *localizedDescription - (void)cancel SKPaymentTransaction NSString *localizedTitle - (void)start NSDecimalNumber *price NSError *error NSLocale *priceLocale ?use? SKPaymentTransaction *originalTransaction NSString *productIdenti?er SKPayment *payment NSDate *transactionDate BOOL downloadable SKProductRequest ?use? NSArray *downloadContentLengths NSString *transactionIdenti?er id <SKProductsRequestDelegate> delegate NSData *transactionReceipt NSString *downloadContentVersion SKPaymentTransactionState transactionState - (id)initWithProductIdenti?ers:(NSSet *)productIdenti?ers NSArray *downloads <<protocol>> SKProductsRequestDelegate ?use? ?use? SKDownload - (void)productsRequest:(SKProductsRequest *)request SKPaymentQueue SKDownloadState downloadState didReceiveResponse:(SKProductsResponse *)response long long contentLength NSArray *transactions NSString *contentIdenti?er NSURL *contentURL + (SKPaymentQueue *)defaultQueue NSString *contentVersion SKStoreProductViewController + (BOOL)canMakePayments NSError *error - (void)addPayment:(SKPayment *)payment ?oat progress id <SKStoreProductViewControllerDelegate> delegate - (void)restoreCompletedTransactions NSTimeInterval timeRemaining - (void)?nishTransaction:(SKPaymentTransaction *)transaction SKPaymentTransaction *transaction - (void)loadProductWithParameters:(NSDictionary - (void)addTransactionObserver:(id <SKPaymentTransactionObserver>)observer *)parameters completionBlock:(void(^)(BOOL result, - (void)removeTransactionObserver:(id <SKPaymentTransactionObserver>)observer NSError *error))block - (void)startDownloads:(NSArray *)downloads - (void)pauseDownloads:(NSArray *)downloads <<protocol>> - (void)resumeDownloads:(NSArray *)downloads SKPaymentTransactionObserver - (void)cancelDownloads:(NSArray *)downloads - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController <<protocol>> SKPaymentTransactionObserver SKError - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions - (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions - (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue - (void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray *)downloads UMLœÊ’‡¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ by @naokits