Skip to content

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 ​

ParameterDescription
contextContext object.
listenerGamedreamerGetBindDataListener callback listener.

Callback Description ​

GamedreamerGetBindDataListener Callback Method Description

ParameterTypeDescription
bindListListChannels already bound to the current account
unbindListListChannels not yet bound to the current account

Binding Channel Categories ​

Channel ValueDescription
GDBindingChannel.PHONEPhone number binding
GDBindingChannel.EMAILEmail binding
GDBindingChannel.FACEBOOKFacebook binding
GDBindingChannel.LINELine binding
GDBindingChannel.TWITTERTwitter binding
GDBindingChannel.GOOGLEGoogle binding
GDBindingChannel.APPLEApple 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()));
                    }
                });