ProtocolUser Class
Extends PluginProtocol
Module: anysdk
user protocol
Index
Methods
- loginlogin interface
- isLoginedget status of login
- getUserIDget user ID
- getPluginIdget plugin ID
- setListenerset listener
- getListenerget listener
- logoutlogout Before to invoke, you need to verdict whether this properties existed
- showToolBarshow toolbar Before to invoke, you need to verdict whether this properties existed
- hideToolBarhide toolbar Before to invoke, you need to verdict whether this properties existed
- enterPlatformenter platform Before to invoke, you need to verdict whether this properties existed
- exitshow exit page Before to invoke, you need to verdict whether this properties existed
- pauseshow pause page Before to invoke, you need to verdict whether this properties existed
- realNameRegisterReal-name registration Before to invoke, you need to verdict whether this properties existed
- antiAddictionQueryAnti-addiction query Before to invoke, you need to verdict whether this properties existed
- submitLoginGameRolesubmit game role information Before to invoke, you need to verdict whether this properties existed
- getUserInfoget user information Before to invoke, you need to verdict whether this properties existed
- getAvailableLoginTypeset login type Before to invoke, you need to verdict whether this properties existed
- setLoginTypeset login type Before to invoke, you need to verdict whether this properties existed
- sendToDesktopsend to desktop Before to invoke, you need to verdict whether this properties existed
- openBBSopen bbs Before to invoke, you need to verdict whether this properties existed
- isFunctionSupportedCheck whether the function is supported
- getPluginNameget plugin name
- getPluginVersionget plugin version
- getSDKVersionget SDK version
- callFuncWithParamvoid methods for reflections with parameter
- callStringFuncWithParamString methods for reflections with parameter
- callIntFuncWithParamint methods for reflections with parameter
- callBoolFuncWithParamboolean methods for reflections with parameter
- callFloatFuncWithParamfloat 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
- placeanysdk.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
- dataObject
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
- infoObject
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
- infoObject
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
- loginTypeString
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
- functionNameString
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 | 
