ProtocolUser
Class
Extends PluginProtocol
Module: anysdk
user protocol
Index
Methods
login
login interfaceisLogined
get status of logingetUserID
get user IDgetPluginId
get plugin IDsetListener
set listenergetListener
get listenerlogout
logout Before to invoke, you need to verdict whether this properties existedshowToolBar
show toolbar Before to invoke, you need to verdict whether this properties existedhideToolBar
hide toolbar Before to invoke, you need to verdict whether this properties existedenterPlatform
enter platform Before to invoke, you need to verdict whether this properties existedexit
show exit page Before to invoke, you need to verdict whether this properties existedpause
show pause page Before to invoke, you need to verdict whether this properties existedrealNameRegister
Real-name registration Before to invoke, you need to verdict whether this properties existedantiAddictionQuery
Anti-addiction query Before to invoke, you need to verdict whether this properties existedsubmitLoginGameRole
submit game role information Before to invoke, you need to verdict whether this properties existedgetUserInfo
get user information Before to invoke, you need to verdict whether this properties existedgetAvailableLoginType
set login type Before to invoke, you need to verdict whether this properties existedsetLoginType
set login type Before to invoke, you need to verdict whether this properties existedsendToDesktop
send to desktop Before to invoke, you need to verdict whether this properties existedopenBBS
open bbs Before to invoke, you need to verdict whether this properties existedisFunctionSupported
Check whether the function is supportedgetPluginName
get plugin namegetPluginVersion
get plugin versiongetSDKVersion
get SDK versioncallFuncWithParam
void methods for reflections with parametercallStringFuncWithParam
String methods for reflections with parametercallIntFuncWithParam
int methods for reflections with parametercallBoolFuncWithParam
boolean methods for reflections with parametercallFloatFuncWithParam
float methods for reflections with parameter
Details
Methods
login
login interface
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:462 |
Parameters
isLogined
get status of login
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:473 |
getUserID
get user ID
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:486 |
getPluginId
get plugin ID
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:499 |
setListener
set listener
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:511 |
Parameters
getListener
get listener
meta | description |
---|---|
Returns | Function |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:523 |
logout
logout Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:535 |
showToolBar
show toolbar Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:546 |
Parameters
place
anysdk.ToolBarPlace
hideToolBar
hide toolbar Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:558 |
enterPlatform
enter platform Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:569 |
exit
show exit page Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:580 |
pause
show pause page Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:591 |
realNameRegister
Real-name registration Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:602 |
antiAddictionQuery
Anti-addiction query Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:613 |
submitLoginGameRole
submit game role information Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:624 |
Parameters
data
Object
getUserInfo
get user information Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:635 |
Parameters
info
Object
getAvailableLoginType
set login type Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:647 |
Parameters
info
Object
setLoginType
set login type Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:659 |
Parameters
loginType
String
sendToDesktop
send to desktop Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:672 |
openBBS
open bbs Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:683 |
isFunctionSupported
Check whether the function is supported
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:327 |
Parameters
functionName
String
getPluginName
get plugin name
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:341 |
getPluginVersion
get plugin version
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:353 |
getSDKVersion
get SDK version
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:365 |
callFuncWithParam
void methods for reflections with parameter
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:377 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:390 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:405 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:420 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:435 |