Cocos Creator API

1.3.0

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

AgentManager

: anysdk

agent manager of plugin

init
(
  • appKey
  • appSecret
  • privateKey
  • oauthLoginServer
)

AppKey appSecret and privateKey are the only three parameters generated after the packing tool client finishes creating the game. The oauthLoginServer parameter is the API address provided by the game service to login verification

appKey String
appSecret String
privateKey String
oauthLoginServer String

loadAllPlugins
(
  • callback
  • target
)

load all plugins, the operation includes SDK`s initialization

callback Function
target object

The object to bind to.

unloadAllPlugins ( )

unload all plugins

getUserPlugin ( ) anysdk.ProtocolUser

get user system plugin

:

: anysdk.ProtocolUser

getIAPPlugins ( ) anysdk.ProtocolIAP

get IAP system plugins

:

: anysdk.ProtocolIAP

getIAPPlugin ( ) anysdk.ProtocolIAP

get IAP system plugin

:

: anysdk.ProtocolIAP

getSocialPlugin ( ) anysdk.ProtocolSocial

get social system plugin

:

: anysdk.ProtocolSocial

getSharePlugin ( ) anysdk.ProtocolShare

get share system plugin

:

: anysdk.ProtocolShare

getAnalyticsPlugin ( ) anysdk.ProtocolAnalytics

get analytics system plugin

:

: anysdk.ProtocolAnalytics

getAdsPlugin ( ) anysdk.ProtocolAds

get ads system plugin

:

: anysdk.ProtocolAds

getPushPlugin ( ) anysdk.ProtocolPush

get push system plugin

:

: anysdk.ProtocolPush

getRECPlugin ( ) anysdk.ProtocolREC

get REC system plugin

:

: anysdk.ProtocolREC

getCrashPlugin ( ) anysdk.ProtocolCrash

get crash system plugin

:

: anysdk.ProtocolCrash

getAdTrackingPlugin ( ) anysdk.ProtocolAdTracking

get ad track system plugin

:

: anysdk.ProtocolAdTracking

getCustomPlugin ( ) anysdk.ProtocolCustom

get custom system plugin

:

: anysdk.ProtocolCustom

getCustomParam ( ) String

get custom parameter

:

: String

getChannelId ( ) String

get channel id

:

: String

isAnaylticsEnabled ( ) boolean

get status of analytics

:

setIsAnaylticsEnabled
(
  • enabled
)

set whether to analytics

enabled boolean

end ( ) static

destory instance

getInstance ( ) anysdk.AgentManager static

get instance

:

: anysdk.AgentManager

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index