Get Current User Account Channel Binding Information
Optional. Used to obtain the platform accounts and third-party login channels already bound to the current user account. This can be used only after the login interface has been called.
Function
java
GDSDK.gamedreamerGetBindData(Context context, GamedreamerGetBindDataListener listener)Parameters
| Parameter | Description |
|---|---|
| context | Context object. |
| listener | GamedreamerGetBindDataListener callback listener. |
Callback Description
GamedreamerGetBindDataListener Callback Method Description
| Parameter | Type | Description |
|---|---|---|
| bindList | List | Channels already bound to the current account |
| unbindList | List | Channels not yet bound to the current account |
Binding Channel Categories
| Channel Value | Description |
|---|---|
| GDBindingChannel.PHONE | Phone number binding |
| GDBindingChannel.EMAIL | Email binding |
| GDBindingChannel.FACEBOOK | Facebook binding |
| GDBindingChannel.LINE | Line binding |
| GDBindingChannel.TWITTER | Twitter binding |
| GDBindingChannel.GOOGLE | Google binding |
| GDBindingChannel.APPLE | Apple binding |
Example Code
java
GDSDK.gamedreamerGetBindData(this, new GamedreamerGetBindDataListener() {
@Override
public void onResult(List<String> bindList, List<String> unbindList) {
simpleToast(String.format("Bound channel count: %d, unbound channel count: %d", bindList.size(), unbindList.size()));
}
});