AgentManager
Class
Module: anysdk
agent manager of plugin
Index
Methods
init
after the packing tool client finishes creating the game.loadAllPlugins
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 | extensions/anysdk/jsb_anysdk.js:59 |
Parameters
loadAllPlugins
load all plugins, the operation includes SDK`s initialization
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:77 |
Parameters
unloadAllPlugins
unload all plugins
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:89 |
getUserPlugin
get user system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolUser |
Defined in | extensions/anysdk/jsb_anysdk.js:99 |
getIAPPlugins
get IAP system plugins
meta | description |
---|---|
Returns | anysdk.ProtocolIAP |
Defined in | extensions/anysdk/jsb_anysdk.js:111 |
getIAPPlugin
get IAP system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolIAP |
Defined in | extensions/anysdk/jsb_anysdk.js:123 |
getSocialPlugin
get social system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolSocial |
Defined in | extensions/anysdk/jsb_anysdk.js:135 |
getSharePlugin
get share system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolShare |
Defined in | extensions/anysdk/jsb_anysdk.js:147 |
getAnalyticsPlugin
get analytics system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAnalytics |
Defined in | extensions/anysdk/jsb_anysdk.js:159 |
getAdsPlugin
get ads system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAds |
Defined in | extensions/anysdk/jsb_anysdk.js:171 |
getPushPlugin
get push system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolPush |
Defined in | extensions/anysdk/jsb_anysdk.js:183 |
getRECPlugin
get REC system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolREC |
Defined in | extensions/anysdk/jsb_anysdk.js:195 |
getCrashPlugin
get crash system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolCrash |
Defined in | extensions/anysdk/jsb_anysdk.js:207 |
getAdTrackingPlugin
get ad track system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolAdTracking |
Defined in | extensions/anysdk/jsb_anysdk.js:219 |
getCustomPlugin
get custom system plugin
meta | description |
---|---|
Returns | anysdk.ProtocolCustom |
Defined in | extensions/anysdk/jsb_anysdk.js:231 |
getCustomParam
get custom parameter
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:243 |
getChannelId
get channel id
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:255 |
isAnaylticsEnabled
get status of analytics
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:267 |
setIsAnaylticsEnabled
set whether to analytics
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:279 |
Parameters
enabled
boolean
end
destory instance
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:290 |
getInstance
get instance
meta | description |
---|---|
Returns | anysdk.AgentManager |
Defined in | extensions/anysdk/jsb_anysdk.js:301 |