ProtocolAnalytics
Class
Extends PluginProtocol
Module: anysdk
analytics protocol
Index
Methods
startSession
Start a new session.stopSession
Stop a session.setSessionContinueMillis
Set the timeout for expiring a session.logError
log an errorlogEvent
log an event.logTimedEventBegin
Track an event begin.logTimedEventEnd
Track an event end.setCaptureUncaughtException
set Whether to catch uncaught exceptions to server.setAccount
analytics account informationonChargeRequest
track user to request paymentonChargeSuccess
track Successful paymentonChargeFail
track failed paymentonChargeOnlySuccess
track Successful paymentonPurchase
track user purchaseonUse
track user to use goodsonReward
track user to reward goodsstartLevel
start levelfinishLevel
finish levelfailLevel
failed levelstartTask
start taskfinishTask
finish taskfailTask
failed taskisFunctionSupported
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
startSession
Start a new session.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:791 |
stopSession
Stop a session.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:801 |
setSessionContinueMillis
Set the timeout for expiring a session.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:811 |
Parameters
millis
Number Type: long
logError
log an error
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:822 |
Parameters
logEvent
log an event.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:834 |
Parameters
logTimedEventBegin
Track an event begin.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:846 |
Parameters
eventId
String
logTimedEventEnd
Track an event end.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:857 |
Parameters
eventId
String
setCaptureUncaughtException
set Whether to catch uncaught exceptions to server.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:868 |
Parameters
enabled
boolean
setAccount
analytics account information
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:879 |
Parameters
paramMap
Object Type: map
onChargeRequest
track user to request payment
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:890 |
Parameters
paramMap
Object Type: map
onChargeSuccess
track Successful payment
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:901 |
Parameters
orderID
String
onChargeFail
track failed payment
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:912 |
Parameters
paramMap
Object Type: map
onChargeOnlySuccess
track Successful payment
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:923 |
Parameters
paramMap
Object Type: map
onPurchase
track user purchase
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:934 |
Parameters
paramMap
Object Type: map
onUse
track user to use goods
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:945 |
Parameters
paramMap
Object Type: map
onReward
track user to reward goods
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:956 |
Parameters
paramMap
Object Type: map
startLevel
start level
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:967 |
Parameters
paramMap
Object Type: map
finishLevel
finish level
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:978 |
Parameters
levelID
String
failLevel
failed level
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:989 |
Parameters
paramMap
Object Type: map
startTask
start task
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1000 |
Parameters
paramMap
Object Type: map
finishTask
finish task
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1011 |
Parameters
taskID
String
failTask
failed task
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1022 |
Parameters
paramMap
Object 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
functionName
String
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 |