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
logoutshowToolBar
show toolbarhideToolBar
hide toolbarenterPlatform
enter platformexit
show exit pagepause
show pause pagerealNameRegister
Real-name registrationantiAddictionQuery
Anti-addiction querysubmitLoginGameRole
submit game role informationgetUserInfo
get user informationgetAvailableLoginType
set login typesetLoginType
set login typesendToDesktop
send to desktopopenBBS
open bbsisFunctionSupported
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 | 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
place
anysdk.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
data
Object
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
info
Object
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
info
Object
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
loginType
String
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
functionName
String
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 |