Cocos Creator API

1.3.0

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

ProtocolAds

ads protocol

hideAds
(
  • adstype
  • idx
)

hide ads view

adstype anysdk.AdsType
idx Number

preloadAds
(
  • adstype
  • idx
)

preload ads view

adstype anysdk.AdsType
idx Number

queryPoints ( ) Number

query points

:

: Number

isAdTypeSupported
(
  • arg0
)
boolean

get whether the ads type is supported

arg0 anysdk.AdsType

:

spendPoints
(
  • points
)

spend point

points Number

setListener
(
  • listener
  • target
)

set listener

listener Function
target Object

getListener ( ) Function

get listener

:

: Function

listener

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