ProtocolAdTracking
Class
Extends PluginProtocol
Module: anysdk
ad tracking protocol
Index
Methods
onPay
Call this method if you want to track register events as happening during a section.onLogin
Call this method if you want to track register events as happening during a section.onRegister
Call this method if you want to track register events as happening during a section.trackEvent
Call this method if you want to track custom events with parameters as happening during a section.onCreateRole
Call this method with parameters if you want to create role as happening during a section.onLevelUp
Call this method if you want to track levelup events with parameters as happening during a section.onStartToPay
Invoke this method with parameters if you want to start to pay as happening during a section.isFunctionSupported
Check whether the function is supportedgetPluginName
get plugin namegetPluginVersion
get plugin versiongetSDKVersion
get SDK versioncallFuncWithParam
void methods for reflections with parametercallStringFuncWithParam
String methods for reflections with parametercallIntFuncWithParam
int methods for reflections with parametercallBoolFuncWithParam
boolean methods for reflections with parametercallFloatFuncWithParam
float methods for reflections with parameter
Details
Methods
onPay
Call this method if you want to track register events as happening during a section.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1661 |
Parameters
productInfo
Object Type: map
onLogin
Call this method if you want to track register events as happening during a section.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1672 |
Parameters
userInfo
Object Type: map
onRegister
Call this method if you want to track register events as happening during a section.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1683 |
Parameters
userId
String
trackEvent
Call this method if you want to track custom events with parameters as happening during a section.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1694 |
Parameters
onCreateRole
Call this method with parameters if you want to create role as happening during a section.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1706 |
Parameters
userInfo
Object Type: map
onLevelUp
Call this method if you want to track levelup events with parameters as happening during a section. Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1717 |
Parameters
info
Object Type: map
onStartToPay
Invoke this method with parameters if you want to start to pay as happening during a section. Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1729 |
Parameters
info
Object Type: map
isFunctionSupported
Check whether the function is supported
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:328 |
Parameters
functionName
String
getPluginName
get plugin name
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:342 |
getPluginVersion
get plugin version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:354 |
getSDKVersion
get SDK version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:366 |
callFuncWithParam
void methods for reflections with parameter
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:378 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:391 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:406 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:421 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:436 |