iOS SDK_客户支持功能
通过与仪表盘关联,可使用客户咨询、调用政策及条款UI、同意收集等功能。
客户咨询功能
可使用会员发送咨询,由负责人回复的客户咨询功能。与仪表盘的客户支持 > 客户咨询菜单关联。
客户咨询UI根据设备语言将变更为韩语、英语、日语、中文(简体、繁体)中的一个语言,除此之外的设备语言,则变更为英语。
如要与仪表盘关联使用客户咨询功能,请使用下列代码。
[[GamePot getInstance] showHelpWebView:(UIViewController *)];
外部链接客户咨询
如要允许通过外部链接访问的未登录客户也能提交咨询,请使用下列代码。
// showWebView Type
// WEBVIEW_NORMAL// 没有返回按钮
// WEBVIEW_NORMALWITHBACK// 有返回按钮
[[GamePot getInstance] showWebView:/*当前ViewController*/ setType:/*Type*/ setURL:/*外部咨询访问URL*/];
条款及政策UI调用功能
可在仪表盘的客户支持菜单以UI形式调用已撰写的各种条款、政策。
如要调用条款及政策UI,请使用下列代码。
使用条款
#import <GamePot/GamePot.h> [[GamePot getInstance] showTerms:/*ViewController*/];
隐私政策
#import <GamePot/GamePot.h> [[GamePot getInstance] showPrivacy:/*ViewController*/];
退款政策
#import <GamePot/GamePot.h> [[GamePot getInstance] showRefund:/*ViewController*/];
条款同意功能(含GDPR)
可使用提供的弹窗UI功能收集在仪表盘已撰写的各种政策及条款的同意。也可以收集GDPR政策的同意。
自动调用条款同意
如果使用GAMEPOT iOS SDK v3.3.0以上版本,当会员登录时,将自动显示条款同意弹窗。
如要变更登录时是否自动调用条款同意,请使用下列代码。
// 默认值为YES
// 自动弹出时,应用MATERIAL_BLUE主题
// 若设置为false,登录时不显示条款同意弹窗。
[[GamePot getInstance] setAutoAgree:YES];
// 自定义应用MATERIAL_ORANGE主题时
GamePotAgreeOption* options = [[GamePotAgreeOption alloc] init:MATERIAL_ORANGE];
[[GamePot getInstance] setAgreeBuilder:options];
...
[[GamePotChannel getInstance] Login:GamePotChannelType viewController:self success:^(GamePotUserInfo* userInfo) {
} cancel:^{
} fail:^(NSError *error) {
} update:^(GamePotAppStatus *appStatus) {
} maintenance:^(GamePotAppStatus *appStatus) {
}];
...
手动调用条款同意
如要手动执行条款调用,请使用下列代码。
选择主题
// 默认主题 [[GamePotAgreeOption alloc] init:BLUE]; [[GamePotAgreeOption alloc] init:GREEN]; // 改进主题 // [[GamePotAgreeOption alloc] init:MATERIAL_RED]; // [[GamePotAgreeOption alloc] init:MATERIAL_BLUE]; // [[GamePotAgreeOption alloc] init:MATERIAL_CYAN]; // [[GamePotAgreeOption alloc] init:MATERIAL_ORANGE]; // [[GamePotAgreeOption alloc] init:MATERIAL_PURPLE]; // [[GamePotAgreeOption alloc] init:MATERIAL_DARKBLUE]; // [[GamePotAgreeOption alloc] init:MATERIAL_YELLOW]; // [[GamePotAgreeOption alloc] init:MATERIAL_GRAPE]; // [[GamePotAgreeOption alloc] init:MATERIAL_GRAY]; // [[GamePotAgreeOption alloc] init:MATERIAL_GREEN]; // [[GamePotAgreeOption alloc] init:MATERIAL_PEACH];
调用
GamePotAgreeOption* option = [[GamePotAgreeOption alloc] init:MATERIAL_BLUE]; [[GamePot getInstance] showAgreeView:self option:option handler:^(GamePotAgreeInfo *result) { // [result agree]:同意全部强制条款时为true // [result agreePush]:勾选同意接收一般广告类消息时为true,未勾选时为false // [result agreeNight]:勾选同意夜间接收广告类消息时为true,否则为false // agreePush/agreeNight值请在登录成功后通过setPushEnable API一次性设置。 }];
自行配置条款同意UI主题
可使用自行配置的条款同意UI主题替代SDK提供的主题。
如要使用自行设置的条款同意UI主题,调用条款同意前请使用下列代码配置主题。
自动调用条款时弹窗自定义设置
GamePotAgreeOption* options = [[GamePotAgreeOption alloc] init:MATERIAL_BLUE]; [[GamePot getInstance] setAgreeBuilder:options];
详细设置
GamePotAgreeOption* option = [[GamePotAgreeOption alloc] init:MATERIAL_BLUE]; [option setHeaderBackGradient:@[@0xFF00050B,@0xFF0F1B21]]; [option setHeaderTitleColor:0xFF042941]; [option setContentBackGradient:@[@0xFF112432,@0xFF112432]]; [option setContentIconColor:0xFF042941]; [option setContentCheckColor:0xFF91adb5]; [option setContentTitleColor:0xFF98b3c6]; [option setContentShowColor:0xFF98b3c6]; [option setFooterBackGradient:@[@0xFF112432,@0xFF112432]]; [option setFooterButtonGradient:@[@0xFF1E3A57,@0xFF57B2E2]]; [option setFooterButtonOutlineColor:0xFF0b171a]; [option setFooterTitleColor:0xFFFFFFD5]; // 更改语句 [option setAllMessage:@"全部同意"]; [option setTermMessage:@"必选) 使用条款"]; [option setPrivacyMessage:@"必选) 隐私政策"]; [option setPushMessage:@"可选) 同意接收一般推送"]; [option setNightPushMessage:@"可选) 同意接收夜间推送"]; [option setFooterTitle:@"开始游戏"]; // 勾选同意接收广告类消息(一般/夜间)后,开始游戏时是否显示提醒消息(同意时间) [option setShowToastPushStatus:YES]; // 修改同意接收广告类消息(一般/夜间)内容 [option setPushToastMsg:@"Push on"]; [option setNightPushToastMsg:@"Night Push on"]; // 未使用时设置为@"" [option setHeaderTitle:@"同意条款"]; // 是否显示同意接收一般广告类消息按钮 [option setShowPush:YES]; // 是否显示同意接收夜间广告类消息按钮 [option setShowNightPush:YES]; // 设置同意接收一般广告类链接(不使用时无需设置) [option setPushDetailURL:@"https://..."]; // 设置同意接收夜间广告类链接(不使用时无需设置) [option setNightPushDetailURL:@"https://..."];
各个变量将应用到如下图片所显示的区域中。
AgeView
EmailView
AgreeView
GDPR条款确认列表功能
如要以列表形式导入在仪表盘激活的GDPR条款项目,请使用下列代码。
(NSArray*) [[GamePot getInstance] getGDPRCheckedList];
//返回的各项参数属于仪表盘的以下设置。
gdpr_privacy:个人信息处理方针
gdpr_term:使用条款
gdpr_gdpr:GDPR使用条款
gdpr_push_normal:同意接收活动推送
gdpr_push_night:同意接收夜间活动推送(仅限韩国)
gdpr_adapp_custom:同意接收个人精准广告投放(GDPR实施国家)
gdpr_adapp_nocustom:同意接收除个人精准广告投放以外的一般广告(GDPR实施国家)
Last updated