苹果iOS IAP管理器接口示例
苹果iOS IAP示例代码:
@interface CBiOSStoreManager : NSObject
+ (CBiOSStoreManager*) sharedInstance;
- (void) buy:(NSString*)buyProductIDTag;
- (bool) CanMakePay;
- (void) initialStore;
- (void) releaseStore;
- (void) requestProductData:(NSString*)buyProductIDTag;
- (void) provideContent:(NSString *)product;
- (void) recordTransaction:(NSString *)product;
- (void) requestProUpgradeProductData:(NSString*)buyProductIDTag;
- (void) paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions;
- (void) purchasedTransaction: (SKPaymentTransaction *)transaction;
- (void) completeTransaction: (SKPaymentTransaction *)transaction;
- (void) failedTransaction: (SKPaymentTransaction *)transaction;
- (void) paymentQueueRestoreCompletedTransactionsFinished: (SKPaymentTransaction *)transaction;
- (void) paymentQueue:(SKPaymentQueue *) paymentQueue restoreCompletedTransactionsFailedWithError:(NSError *)error;
- (void) restoreTransaction: (SKPaymentTransaction *)transaction;
Superpigtest.zip
预估大小:55个文件
Superpigtest
文件夹
Superpigtest
文件夹
Superpigtest-Info.plist
1KB
ViewController.m
2KB
en.lproj
文件夹
ViewController.xib
5KB
InfoPlist.strings
45B
main.m
337B
CBiOSStoreManager.m
9KB
Superpigtest-Prefix.pch
327B
...
59.95KB
文件大小:
评论区