唐伟军

update

......@@ -14,35 +14,67 @@
#### 第一步判断是否可使用该功能
| 接口名 | 方法名 | 返回结果 |
|-----------------------------|---------------------------|----------------------------------------|
| Facebook好友界面 | hasFaceBookFriendsView | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 分享到Facebook | hasShareFacebook | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 删除账号 | hasDeleteMember | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 显示公告 | hasShowNotice | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 显示cafe窗口 | hasNaverCafePlug | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 谷歌评论 | hasGoogleComment | true 执行第三步的相应接口,false 不显示入口 |
| | | |
| 绑定账号 | hasLinkedAccountView | true 执行第二步的相应接口,false 不显示入口 |
| | | |
| 设置推送 | hasPushView | true 执行第二步的相应接口,false 不显示入口 |
| 接口名 | 方法名 | 参数 | 返回结果 |
|-----------------------------|-------------------------|------------|----------------------------------------|
| Facebook好友界面 | hasFaceBookFriendsView | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 优惠券 | hasCoupon | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 分享 | hasShareView | null | Json字符串,空串代表不显示任何入口,否则cp通过解析 |
| json字符串,然后通过对应的分享平台key,获取
| 相应的值来决定是否显示入口,"true"代表显示,
| "false"代表不显示,目前支持的分享平台key有
| facebook分享:"facebook"
| facebook截屏分享:"facebook_capture"
| twitter分享:"twitter"
| twitter截屏分享:"twitter_capture"
| line截屏分享:"line_capture"
| instagram截屏分享:"instagram_capture"
| 返回事例:{"facebook":"true",
| "facebook_capture":"true",
| "instagram_capture":"false"}
| | | | |
| 删除账号 | hasDeleteMember | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 显示公告 | hasShowNotice | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 显示cafe窗口 | hasNaverCafePlug | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 谷歌评论 | hasGoogleComment | 无参数 | true 执行第三步的相应接口,false 不显示入口 |
| | | | |
| 绑定账号 | hasLinkedAccountView | null | Json字符串,空串代表不显示任何入口,否则cp通过解析 |
| json字符串,然后通过对应的绑定平台key,获取
| 相应的值来决定是否显示入口,"true"代表显示,
| "false"代表不显示,目前支持的绑定平台key有
| facebook绑定:"facebook"
| google绑定:"google"
| 不确定绑定平台:"other"
| 返回事例:{"facebook":"true",
| "google":"true",
| "other":"false"}
| | | | |
| 设置推送 | hasPushView | null | Json字符串,空串代表不显示任何入口,否则cp通过解析 |
| json字符串,然后通过对应的推送类型key,获取
| 相应的值来决定是否显示入口,"true"代表显示,
| "false"代表不显示,目前支持的推送类型key有
| 全体推送:"enable"
| 夜间推送:"night"
| 广告推送:"ad"
| 返回事例:{"enable":"true",
| "night":"true",
| "ad":"false"}
#### 第二步获取状态(不用获取状态的功能请跳过此步骤执行第三步)
| 接口名 | 方法名 | 参数 | 返回结果 |
|------------|--------------------------|---------------------------------------|------------------------------|
| 绑定账号 | getLinkedAccountStatus | Map集合,key表示绑定平台,比如谷歌就传 | "true" 表示绑定了该平台 |
| | | google,facebook就传facebook,不确定 | "false" 表示未绑定该平台 |
| | | 平台传other;value传""就好 | |
| google,facebook就传facebook,不确定 "false" 表示未绑定该平台 |
| 平台传other;value传""就好 |
| | | | |
| 设置推送 | getPushStatus | Map集合,key表示推送类型,比如全体推送 | "true" 表示设置了该推送 |
| | | 就传enable,夜间推送就传night,广告推送 | "false" 表示未设置该推送 |
| | | 就传ad;value传""就好 | |
| 设置推送 | getPushStatus | Map集合,key表示推送类型,比如全体推送 | "true" 表示设置了该推送 |
| 就传enable,夜间推送就传night,广告推送 "false" 表示未设置该推送 |
| 就传ad;value传""就好 |
#### 第三步设置功能
......@@ -51,7 +83,15 @@
|-----------------------|---------------------------|------------------------------------------|-----------------------|
| Facebook好友界面 | showFaceBookFriendsView | null | 无 |
| | | | |
| 分享到Facebook | showShareFacebookView | null | 成功 1104 失败 1204 |
| 优惠券 | coupon | Map集合,key传优惠券码,value为"" | 成功 1102 失败 1202 |
| | | | |
| 分享 | showShareView | Map集合,key表示分享类型,value为"" | 成功 1104 失败 1204 |
| facebook分享:"facebook"
| facebook截屏分享:"facebook_capture"
| twitter分享:"twitter"
| twitter截屏分享:"twitter_capture"
| line截屏分享:"line_capture"
| instagram截屏分享:"instagram_capture"
| | | | |
| 删除账号 | deleteMember | null | 成功 1107 失败 1207 |
| | | | |
......@@ -89,16 +129,22 @@
`
用户点击公告时
`
PoolSdkHelper.callFunc("showNotice",null);
PoolSdkHelper.callFunc("showNotice",null);此结果的返回码如上表格
`
#### 需要进行第二步获取状态以 绑定账号 为例
`
boolean hasLinkedAccountView = PoolSdkHelper.hasFunction("hasLinkedAccountView");
if(hasLinkedAccountView){
//显示公告入口
String hasLinkedAccountView = PoolSdkHelper.callFunc("hasLinkedAccountView",null);
if(hasLinkedAccountView==""){
//不显示绑定入口
}else{
//不显示公告入口`
JSONObject jsonObject = new JSONObject(hasLinkedAccountView);
String itemGoogle = jsonObject.get("google");
if(itemGoogle=="true"){
//显示google的绑定入口
}else{
//不显示google的绑定入口
}
}
`
获取绑定状态,以便知道显示解绑还是绑定视图
......