APP集成tapjoy积分墙(2)
来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:26 点击:次
secretKey:APP_SECRET_KEY
options:@{
TJC_OPTION_TRANSITION_EFFECT : @(TJCTransitionExpand),
TJC_OPTION_ENABLE_LOGGING : @(YES),
TJC_OPTION_COLLECT_MAC_ADDRESS: @(TJCMacAddressOptionOffWithVersionCheck),
// If you are not using Tapjoy Managed currency, you would set your own user ID here.
//TJC_OPTON_USER_ID : @"A_UNIQUE_USER_ID"
}];
//注册积分墙消息监视
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(offerwallClosed:) name:TJC_VIEW_CLOSED_NOTIFICATION object:nil];
//注册积分查询、消费监视
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getTJPoints:) name:TJC_TAP_POINTS_RESPONSE_NOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getTJPointsError:) name:TJC_TAP_POINTS_RESPONSE_NOTIFICATION_ERROR object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(consumeTJPoints:) name:TJC_SPEND_TAP_POINTS_RESPONSE_NOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(consumeTJPointsError:) name:TJC_SPEND_TAP_POINTS_RESPONSE_NOTIFICATION_ERROR object:nil];
//注册全屏广告
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getTJFullScreenAd:) name:TJC_FULL_SCREEN_AD_RESPONSE_NOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(fullScreenAdClosed:) name:TJC_VIEW_CLOSED_NOTIFICATION object:nil];
相关新闻>>
- 发表评论
-
- 最新评论 更多>>