Cocos Creator API

1.4.x

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

PluginProtocol

Module: anysdk

plugin protocol

Methods

isFunctionSupported
(
  • functionName
)
boolean

Check whether the function is supported

name type description
functionName String

returns:

type: boolean

getPluginName ( ) String

get plugin name

returns:

type: String

getPluginVersion ( ) String

get plugin version

returns:

type: String

getSDKVersion ( ) String

get SDK version

returns:

type: String

callFuncWithParam
(
  • funName
  • [args ]
)

void methods for reflections with parameter

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

optional arguments

callStringFuncWithParam
(
  • funName
  • [args ]
)
String

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

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

boolean methods for reflections with parameter

name type description
funName String
args optional