ProtocolAdTracking Class
Extends PluginProtocol
Module: anysdk
ad tracking protocol
Index
Methods
- onPayCall this method if you want to track register events as happening during a section.
- onLoginCall this method if you want to track register events as happening during a section.
- onRegisterCall this method if you want to track register events as happening during a section.
- trackEventCall this method if you want to track custom events with parameters as happening during a section.
- onCreateRoleCall this method with parameters if you want to create role as happening during a section.
- onLevelUpCall 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
- onStartToPayInvoke 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
- isFunctionSupportedCheck whether the function is supported
- getPluginNameget plugin name
- getPluginVersionget plugin version
- getSDKVersionget SDK version
- callFuncWithParamvoid methods for reflections with parameter
- callStringFuncWithParamString methods for reflections with parameter
- callIntFuncWithParamint methods for reflections with parameter
- callBoolFuncWithParamboolean methods for reflections with parameter
- callFloatFuncWithParamfloat 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 | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1660 | 
Parameters
- productInfoObject Type: map
onLogin
Call this method if you want to track register events as happening during a section.
| meta | description | 
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1671 | 
Parameters
- userInfoObject Type: map
onRegister
Call this method if you want to track register events as happening during a section.
| meta | description | 
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1682 | 
Parameters
- userIdString
trackEvent
Call this method if you want to track custom events with parameters as happening during a section.
| meta | description | 
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1693 | 
Parameters
onCreateRole
Call this method with parameters if you want to create role as happening during a section.
| meta | description | 
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1705 | 
Parameters
- userInfoObject 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 | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1716 | 
Parameters
- infoObject 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 | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1728 | 
Parameters
- infoObject Type: map
isFunctionSupported
Check whether the function is supported
| meta | description | 
|---|---|
| Returns | boolean | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:327 | 
Parameters
- functionNameString
getPluginName
get plugin name
| meta | description | 
|---|---|
| Returns | String | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:341 | 
getPluginVersion
get plugin version
| meta | description | 
|---|---|
| Returns | String | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:353 | 
getSDKVersion
get SDK version
| meta | description | 
|---|---|
| Returns | String | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:365 | 
callFuncWithParam
void methods for reflections with parameter
| meta | description | 
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:377 | 
Parameters
callStringFuncWithParam
String methods for reflections with parameter
| meta | description | 
|---|---|
| Returns | String | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:390 | 
Parameters
callIntFuncWithParam
int methods for reflections with parameter
| meta | description | 
|---|---|
| Returns | Number | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:405 | 
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
| meta | description | 
|---|---|
| Returns | boolean | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:420 | 
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
| meta | description | 
|---|---|
| Returns | Number | 
| Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:435 | 
