Cocos Creator API

1.2.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

ProtocolUser

Extends PluginProtocol
Module: anysdk

user protocol

Methods

login
(
  • [args ]
)

login interface

name type description
args optional String | Objcet

optional arguments

isLogined ( ) boolean

get status of login

returns:

type: boolean

getUserID ( ) String

get user ID

returns:

type: String

getPluginId ( ) String

get plugin ID

returns:

type: String

setListener
(
  • listener
  • target
)

set listener

name type description
listener Function
target Object

getListener ( ) Function

get listener

returns:

type: Function

listener

logout ( )

logout Before to invoke, you need to verdict whether this properties existed

showToolBar
(
  • place
)

show toolbar Before to invoke, you need to verdict whether this properties existed

name type description
place anysdk.ToolBarPlace

hideToolBar ( )

hide toolbar Before to invoke, you need to verdict whether this properties existed

enterPlatform ( )

enter platform Before to invoke, you need to verdict whether this properties existed

exit ( )

show exit page Before to invoke, you need to verdict whether this properties existed

pause ( )

show pause page Before to invoke, you need to verdict whether this properties existed

realNameRegister ( )

Real-name registration Before to invoke, you need to verdict whether this properties existed

antiAddictionQuery ( )

Anti-addiction query Before to invoke, you need to verdict whether this properties existed

submitLoginGameRole
(
  • data
)

submit game role information Before to invoke, you need to verdict whether this properties existed

name type description
data Object

getUserInfo
(
  • info
)

get user information Before to invoke, you need to verdict whether this properties existed

name type description
info Object

getAvailableLoginType
(
  • info
)

set login type Before to invoke, you need to verdict whether this properties existed

name type description
info Object

setLoginType
(
  • loginType
)

set login type Before to invoke, you need to verdict whether this properties existed

name type description
loginType String

sendToDesktop ( )

send to desktop Before to invoke, you need to verdict whether this properties existed

openBBS ( )

open bbs Before to invoke, you need to verdict whether this properties existed

isFunctionSupported
(
  • functionName
)
boolean

Inherited from PluginProtocol:

Check whether the function is supported

name type description
functionName String

returns:

type: boolean

getPluginName ( ) String

Inherited from PluginProtocol:

get plugin name

returns:

type: String

getPluginVersion ( ) String

Inherited from PluginProtocol:

get plugin version

returns:

type: String

getSDKVersion ( ) String

Inherited from PluginProtocol:

get SDK version

returns:

type: String

callFuncWithParam
(
  • funName
  • [args ]
)

Inherited from PluginProtocol:

void methods for reflections with parameter

name type description
funName String
args optional Object | anysdk.PluginParam

optional arguments

callStringFuncWithParam
(
  • funName
  • [args ]
)
String

Inherited from PluginProtocol:

String methods for reflections with parameter

name type description
funName String
args optional Object | anysdk.PluginParam

optional arguments

returns:

type: String

callIntFuncWithParam
(
  • funName
  • [args ]
)
Number

Inherited from PluginProtocol:

int methods for reflections with parameter

name type description
funName String
args optional Object | anysdk.PluginParam

optional arguments

returns:

type: Number

Type:int

callBoolFuncWithParam
(
  • funName
  • [args ]
)
boolean

Inherited from PluginProtocol:

boolean methods for reflections with parameter

name type description
funName String
args optional Object | anysdk.PluginParam

optional arguments

returns:

type: boolean

callFloatFuncWithParam
(
  • funName
  • [args ]
)
Number

Inherited from PluginProtocol:

float methods for reflections with parameter

name type description
funName String
args optional Object | anysdk.PluginParam

optional arguments

returns:

type: Number

Type:float

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index