| | |
| | |
|
| | | -(void) Init
|
| | | {
|
| | | // --------------------- 初始化 --------------------------
|
| | | SMPCQuickSDKInitConfigure *cfg = [[SMPCQuickSDKInitConfigure alloc] init];
|
| | | cfg.productKey = PRODUCT_KEY;
|
| | | cfg.productCode = PRODUCT_CODE;
|
| | | [[SMPCQuickSDK defaultInstance] initWithConfig:cfg application:application didFinishLaunchingWithOptions:launchOptions];
|
| | | // ------------------------------------------------------
|
| | | |
| | | UIDevice *_device = [UIDevice currentDevice];
|
| | | _device.batteryMonitoringEnabled = true;
|
| | |
|
| | |
| | | // 监听充值结果
|
| | | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(smpcQpRechargeResult:) name:kSmpcQuickSDKNotiRecharge object:nil];
|
| | |
|
| | | // --------------------- 初始化 --------------------------
|
| | | SMPCQuickSDKInitConfigure *cfg = [[SMPCQuickSDKInitConfigure alloc] init];
|
| | | cfg.productKey = PRODUCT_KEY;
|
| | | cfg.productCode = PRODUCT_CODE;
|
| | | [[SMPCQuickSDK defaultInstance] initWithConfig:cfg application:application didFinishLaunchingWithOptions:launchOptions];
|
| | | // ------------------------------------------------------
|
| | |
|
| | | }
|
| | |
|
| | | - (void)smpcQpInitResult:(NSNotification *)notify {
|