【文件属性】:
文件名称:【IOS一气呵成】之IAP集成:内购和内购恢复 DEMO
文件大小:2KB
文件格式:RAR
更新时间:2017-05-09 11:14:13
IOS 内购 IAP
博文地址:http://blog.csdn.net/vkenchen/article/details/24122345#t18
#import
#import
#import
@class RMIAPHelper;
@protocol RMIAPHelperDelegate
//购买
-(void)requestProduct:(RMIAPHelper*)sender start:(SKProductsRequest*)request;
-(void)requestProduct:(RMIAPHelper*)sender received:(SKProductsRequest*)request;
-(void)paymentRequest:(RMIAPHelper*)sender start:(SKPayment*)payment;
-(void)paymentRequest:(RMIAPHelper*)sender purchased:(SKPaymentTransaction*)transaction;
-(void)paymentRequest:(RMIAPHelper*)sender restored:(SKPaymentTransaction*)transaction;
-(void)paymentRequest:(RMIAPHelper*)sender failed:(SKPaymentTransaction*)transaction;
//恢复
-(BOOL)restoredArray:(RMIAPHelper*)sender withArray:(NSArray*)productsIdArray;
//其他
//不支持内购
-(void)iapNotSupported:(RMIAPHelper*)sender;
@end
@interface RMIAPHelper : NSObject
+(RMIAPHelper*)sharedInstance;
@property(nonatomic,assign) id delegate;
-(void)setup;
-(void)destroy;
-(void)buy:(NSString*)productId;
-(void)restore;
@end
【文件预览】:
RMIAPHelper.h
RMIAPHelper.m