AgentManager
Class
Module: anysdk
agent manager of plugin
Index
Methods
init
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 verificationloadAllPlugins
load all plugins, the operation includes SDK`s initializationunloadAllPlugins
unload all pluginsgetUserPlugin
get user system plugingetIAPPlugins
get IAP system pluginsgetIAPPlugin
get IAP system plugingetSocialPlugin
get social system plugingetSharePlugin
get share system plugingetAnalyticsPlugin
get analytics system plugingetAdsPlugin
get ads system plugingetPushPlugin
get push system plugingetRECPlugin
get REC system plugingetCrashPlugin
get crash system plugingetAdTrackingPlugin
get ad track system plugingetCustomPlugin
get custom system plugingetCustomParam
get custom parametergetChannelId
get channel idisAnaylticsEnabled
get status of analyticssetIsAnaylticsEnabled
set whether to analyticsend
destory instancegetInstance
get instance
Details
Methods
init
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
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:58 |
Parameters
loadAllPlugins
load all plugins, the operation includes SDK`s initialization
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:76 |
Parameters
unloadAllPlugins
unload all plugins
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:88 |
getUserPlugin
get user system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolUser |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:98 |
getIAPPlugins
get IAP system plugins
meta | description |
---|---|
Returns | anysdk.ProtocolIAP |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:110 |
getIAPPlugin
get IAP system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolIAP |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:122 |
getSocialPlugin
get social system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolSocial |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:134 |
getSharePlugin
get share system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolShare |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:146 |
getAnalyticsPlugin
get analytics system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAnalytics |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:158 |
getAdsPlugin
get ads system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAds |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:170 |
getPushPlugin
get push system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolPush |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:182 |
getRECPlugin
get REC system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolREC |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:194 |
getCrashPlugin
get crash system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolCrash |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:206 |
getAdTrackingPlugin
get ad track system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAdTracking |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:218 |
getCustomPlugin
get custom system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolCustom |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:230 |
getCustomParam
get custom parameter
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:242 |
getChannelId
get channel id
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:254 |
isAnaylticsEnabled
get status of analytics
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:266 |
setIsAnaylticsEnabled
set whether to analytics
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:278 |
Parameters
enabled
boolean
end
destory instance
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:289 |
getInstance
get instance
meta | description |
---|---|
Returns | anysdk.AgentManager |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:300 |