Cocos Creator API

1.3.0

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

ProtocolUser

user protocol

login
(
  • [args ]
)

login interface

args optional String | Object

optional arguments

isLogined ( ) boolean

get status of login

:

getUserID ( ) String

get user ID

:

: String

getPluginId ( ) String

get plugin ID

:

: String

setListener
(
  • listener
  • target
)

set listener

listener Function
target Object

getListener ( ) Function

get listener

:

: 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

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

data Object

getUserInfo
(
  • info
)

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

info Object

getAvailableLoginType
(
  • info
)

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

info Object

setLoginType
(
  • loginType
)

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

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

Check whether the function is supported

functionName String

:

getPluginName ( ) String

get plugin name

:

: String

getPluginVersion ( ) String

get plugin version

:

: String

getSDKVersion ( ) String

get SDK version

:

: String

callFuncWithParam
(
  • funName
  • [args ]
)

void methods for reflections with parameter

funName String
args optional Object | anysdk.PluginParam

optional arguments

callStringFuncWithParam
(
  • funName
  • [args ]
)
String

String methods for reflections with parameter

funName String
args optional Object | anysdk.PluginParam

optional arguments

:

: String

callIntFuncWithParam
(
  • funName
  • [args ]
)
Number

int methods for reflections with parameter

funName String
args optional Object | anysdk.PluginParam

optional arguments

:

: Number

Type:int

callBoolFuncWithParam
(
  • funName
  • [args ]
)
boolean

boolean methods for reflections with parameter

funName String
args optional Object | anysdk.PluginParam

optional arguments

:

callFloatFuncWithParam
(
  • funName
  • [args ]
)
Number

float methods for reflections with parameter

funName String
args optional Object | anysdk.PluginParam

optional arguments

:

: 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