ProtocolAnalytics Class
Extends PluginProtocol
Module: anysdk
analytics protocol
Index
Methods
- startSessionStart a new session.
- stopSessionStop a session.
- setSessionContinueMillisSet the timeout for expiring a session.
- logErrorlog an error
- logEventlog an event.
- logTimedEventBeginTrack an event begin.
- logTimedEventEndTrack an event end.
- setCaptureUncaughtExceptionset Whether to catch uncaught exceptions to server.
- setAccountanalytics account information
- onChargeRequesttrack user to request payment
- onChargeSuccesstrack Successful payment
- onChargeFailtrack failed payment
- onChargeOnlySuccesstrack Successful payment
- onPurchasetrack user purchase
- onUsetrack user to use goods
- onRewardtrack user to reward goods
- startLevelstart level
- finishLevelfinish level
- failLevelfailed level
- startTaskstart task
- finishTaskfinish task
- failTaskfailed task
- 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
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
- millisNumber 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
- eventIdString
logTimedEventEnd
Track an event end.
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:858 | 
Parameters
- eventIdString
setCaptureUncaughtException
set Whether to catch uncaught exceptions to server.
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:869 | 
Parameters
- enabledboolean
setAccount
analytics account information
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:880 | 
Parameters
- paramMapObject Type: map
onChargeRequest
track user to request payment
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:891 | 
Parameters
- paramMapObject Type: map
onChargeSuccess
track Successful payment
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:902 | 
Parameters
- orderIDString
onChargeFail
track failed payment
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:913 | 
Parameters
- paramMapObject Type: map
onChargeOnlySuccess
track Successful payment
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:924 | 
Parameters
- paramMapObject Type: map
onPurchase
track user purchase
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:935 | 
Parameters
- paramMapObject Type: map
onUse
track user to use goods
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:946 | 
Parameters
- paramMapObject Type: map
onReward
track user to reward goods
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:957 | 
Parameters
- paramMapObject Type: map
startLevel
start level
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:968 | 
Parameters
- paramMapObject Type: map
finishLevel
finish level
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:979 | 
Parameters
- levelIDString
failLevel
failed level
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:990 | 
Parameters
- paramMapObject Type: map
startTask
start task
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:1001 | 
Parameters
- paramMapObject Type: map
finishTask
finish task
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:1012 | 
Parameters
- taskIDString
failTask
failed task
| meta | description | 
|---|---|
| Defined in | extensions/anysdk/jsb_anysdk.js:1023 | 
Parameters
- paramMapObject Type: map
isFunctionSupported
Check whether the function is supported
| meta | description | 
|---|---|
| Returns | boolean | 
| Defined in | extensions/anysdk/jsb_anysdk.js:328 | 
Parameters
- functionNameString
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 | 
