提交 15f3e93e 作者: 刘添

更新 AndroidSDK对接说明文档.md

上级 422f3a70
## GameSDKV1.0文档接入使用 ## GameSDKV1.0文档接入使用
...@@ -177,11 +177,12 @@ void loginError(Object data); ...@@ -177,11 +177,12 @@ void loginError(Object data);
``` ```
### 7、调起支付页面<a name="sec7"></a>
### 7、调起支付页面<a name="sec7"></a>
1、调起支付页面方法 1、调起支付页面方法
``` ```
public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener) public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener)
``` ```
...@@ -231,8 +232,10 @@ public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener) ...@@ -231,8 +232,10 @@ public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener)
} }
}); });
``` ```
##### 下单支付字段说明 ##### 下单支付字段说明
> **参数说明**: > **参数说明**:
...@@ -311,7 +314,9 @@ public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener) ...@@ -311,7 +314,9 @@ public void showPay(CustomPayParam payParam, OnPaymentListener paymentListener)
### 9、退出登录<a name="sec9"></a> ### 9、退出登录<a name="sec9"></a>
1、添加登出回调监听 1、添加登出回调监听
``` ```
public void addLogoutListener(OnLogoutListener onLogoutListener) public void addLogoutListener(OnLogoutListener onLogoutListener)
``` ```
...@@ -329,6 +334,7 @@ public void addLogoutListener(OnLogoutListener onLogoutListener) ...@@ -329,6 +334,7 @@ public void addLogoutListener(OnLogoutListener onLogoutListener)
| :-------- | ----: | | :-------- | ----: |
| OnLogoutListener | 退出登陆回调接口 | | OnLogoutListener | 退出登陆回调接口 |
> **退出登录成功**: > **退出登录成功**:
``` ```
...@@ -343,7 +349,8 @@ public void logoutError(String msg); ...@@ -343,7 +349,8 @@ public void logoutError(String msg);
``` ```
> **调用示例**: > **调用示例**:
>
``` ```
GameSdk.getInstance().addLogoutListener(new OnLogoutListener() { GameSdk.getInstance().addLogoutListener(new OnLogoutListener() {
...@@ -358,13 +365,16 @@ public void logoutError(String msg); ...@@ -358,13 +365,16 @@ public void logoutError(String msg);
} }
}); });
``` ```
- 说明:在需要退出登陆时可调用此方法,注意此方法为退出,并不会调出登陆界面 - 说明:在需要退出登陆时可调用此方法,注意此方法为退出,并不会调出登陆界面
### 10、退出应用弹框<a name="sec10"></a> ### 10、退出应用弹框<a name="sec10"></a>
1、添加退出回调监听 1、添加退出回调监听
> **调用示例**: > **调用示例**:
``` ```
public void exitApp(ExitAppListener listener) public void exitApp(ExitAppListener listener)
``` ```
...@@ -377,6 +387,7 @@ public void exitApp(ExitAppListener listener) ...@@ -377,6 +387,7 @@ public void exitApp(ExitAppListener listener)
| ExitAppListener | 退出应用回调接口 | | ExitAppListener | 退出应用回调接口 |
> **调用示例**: > **调用示例**:
``` ```
@Override @Override
public void onBackPressed() { public void onBackPressed() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论