Cocos Creator API

1.4.x

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

ProtocolPush

Extends PluginProtocol
Module: anysdk

push protocol

Methods

startPush ( )

start Push services

closePush ( )

close Push services

delAlias
(
  • alias
)

delete alias

name type description
alias String

setAlias
(
  • alias
)

set alias

name type description
alias String

delTags
(
  • tags
)

delete tags

name type description
tags Object

Type: list

setTags
(
  • tags
)

set tags

name type description
tags Object

Type: list

setListener
(
  • listener
  • target
)

set listener

name type description
listener Function
target Object

getListener ( ) Function

get listener

returns:

type: Function

listener

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