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 | extensions/anysdk/jsb_anysdk.js:792 |
stopSession
Stop a session.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:802 |
setSessionContinueMillis
Set the timeout for expiring a session.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:812 |
Parameters
millis
Number Type: long
logError
log an error
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:823 |
Parameters
logEvent
log an event.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:835 |
Parameters
logTimedEventBegin
Track an event begin.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:847 |
Parameters
eventId
String
logTimedEventEnd
Track an event end.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:858 |
Parameters
eventId
String
setCaptureUncaughtException
set Whether to catch uncaught exceptions to server.
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:869 |
Parameters
enabled
boolean
setAccount
analytics account information
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:880 |
Parameters
paramMap
Object Type: map
onChargeRequest
track user to request payment
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:891 |
Parameters
paramMap
Object Type: map
onChargeSuccess
track Successful payment
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:902 |
Parameters
orderID
String
onChargeFail
track failed payment
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:913 |
Parameters
paramMap
Object Type: map
onChargeOnlySuccess
track Successful payment
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:924 |
Parameters
paramMap
Object Type: map
onPurchase
track user purchase
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:935 |
Parameters
paramMap
Object Type: map
onUse
track user to use goods
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:946 |
Parameters
paramMap
Object Type: map
onReward
track user to reward goods
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:957 |
Parameters
paramMap
Object Type: map
startLevel
start level
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:968 |
Parameters
paramMap
Object Type: map
finishLevel
finish level
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:979 |
Parameters
levelID
String
failLevel
failed level
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:990 |
Parameters
paramMap
Object Type: map
startTask
start task
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1001 |
Parameters
paramMap
Object Type: map
finishTask
finish task
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1012 |
Parameters
taskID
String
failTask
failed task
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1023 |
Parameters
paramMap
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 |