ProtocolUser Class
Extends PluginProtocol
Module: anysdk
user protocol
Index
Methods
loginlogin interfaceisLoginedget status of logingetUserIDget user IDgetPluginIdget plugin IDsetListenerset listenergetListenerget listenerlogoutlogoutshowToolBarshow toolbarhideToolBarhide toolbarenterPlatformenter platformexitshow exit pagepauseshow pause pagerealNameRegisterReal-name registrationantiAddictionQueryAnti-addiction querysubmitLoginGameRolesubmit game role informationgetUserInfoget user informationgetAvailableLoginTypeset login typesetLoginTypeset login typesendToDesktopsend to desktopopenBBSopen bbsisFunctionSupportedCheck whether the function is supportedgetPluginNameget plugin namegetPluginVersionget plugin versiongetSDKVersionget SDK versioncallFuncWithParamvoid methods for reflections with parametercallStringFuncWithParamString methods for reflections with parametercallIntFuncWithParamint methods for reflections with parametercallBoolFuncWithParamboolean methods for reflections with parametercallFloatFuncWithParamfloat methods for reflections with parameter
Details
Methods
login
login interface
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:463 |
Parameters
isLogined
get status of login
| meta | description |
|---|---|
| Returns | boolean |
| Defined in | extensions/anysdk/jsb_anysdk.js:474 |
getUserID
get user ID
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:487 |
getPluginId
get plugin ID
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:500 |
setListener
set listener
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:512 |
Parameters
getListener
get listener
| meta | description |
|---|---|
| Returns | Function |
| Defined in | extensions/anysdk/jsb_anysdk.js:524 |
logout
logout Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:536 |
showToolBar
show toolbar Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:547 |
Parameters
placeanysdk.ToolBarPlace
hideToolBar
hide toolbar Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:559 |
enterPlatform
enter platform Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:570 |
exit
show exit page Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:581 |
pause
show pause page Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:592 |
realNameRegister
Real-name registration Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:603 |
antiAddictionQuery
Anti-addiction query Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:614 |
submitLoginGameRole
submit game role information Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:625 |
Parameters
dataObject
getUserInfo
get user information Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:636 |
Parameters
infoObject
getAvailableLoginType
set login type Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:648 |
Parameters
infoObject
setLoginType
set login type Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:660 |
Parameters
loginTypeString
sendToDesktop
send to desktop Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:673 |
openBBS
open bbs Before to invoke, you need to verdict whether this properties existed
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:684 |
isFunctionSupported
Check whether the function is supported
| meta | description |
|---|---|
| Returns | boolean |
| Defined in | extensions/anysdk/jsb_anysdk.js:328 |
Parameters
functionNameString
getPluginName
get plugin name
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:342 |
getPluginVersion
get plugin version
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:354 |
getSDKVersion
get SDK version
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:366 |
callFuncWithParam
void methods for reflections with parameter
| meta | description |
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:378 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
| meta | description |
|---|---|
| Returns | String |
| Defined in | extensions/anysdk/jsb_anysdk.js:391 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
| meta | description |
|---|---|
| Returns | Number |
| Defined in | extensions/anysdk/jsb_anysdk.js:406 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
| meta | description |
|---|---|
| Returns | boolean |
| Defined in | extensions/anysdk/jsb_anysdk.js:421 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
| meta | description |
|---|---|
| Returns | Number |
| Defined in | extensions/anysdk/jsb_anysdk.js:436 |