Cocos Creator API

1.4.x

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

ProtocolCrash

Extends PluginProtocol
Module: anysdk

crash protocol

Methods

setUserIdentifier
(
  • identifier
)

set user identifier

name type description
identifier String

reportException
(
  • message
  • exception
)

The uploader captured in exception information

name type description
message String
exception String

leaveBreadcrumb
(
  • breadcrumb
)

customize logging

name type description
breadcrumb String

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