public interface ICount extends IRecordEvent
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCrashLog(java.lang.String record)
Add crash breadcrumb like log record to the log that will be send together with crash report
|
void |
changeDeviceId(java.lang.String deviceId) |
void |
enableCrashReporting()
Enable crash reporting to send unhandled crash reports to server
|
void |
enableParameterTamperingProtection(java.lang.String salt) |
boolean |
endEvent(java.lang.String key)
End timed event with a specified key
|
boolean |
endEvent(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> segmentation,
int count,
double sum)
End timed event with a specified key
|
void |
halt() |
void |
init(android.content.Context context,
java.lang.String serverUrl,
java.lang.String appKey) |
void |
init(android.content.Context context,
java.lang.String serverUrl,
java.lang.String appKey,
java.lang.String deviceId) |
boolean |
isInitialized() |
boolean |
isLoggingEnabled() |
boolean |
isViewTrackingEnabled() |
void |
logException(java.lang.Exception exception)
Log handled exception to report it to server as non fatal crash
|
void |
onCreate(android.app.Activity activity) |
void |
onStart(android.app.Activity activity) |
void |
onStop() |
void |
recordView(java.lang.String viewName) |
void |
setCustomCrashSegments(java.util.Map<java.lang.String,java.lang.String> segments)
Sets custom segments to be reported with crash reports
In custom segments you can provide any string key values to segments crashes by
|
void |
setCustomUserData(java.util.Map<java.lang.String,java.lang.String> customdata) |
void |
setDisableUpdateSessionRequests(boolean disable)
Disable periodic session time updates.
|
void |
setEventQueueSizeToSend(int size) |
void |
setLocation(double lat,
double lon) |
void |
setLoggingEnabled(boolean enableLogging)
Sets whether debug logging is turned on or off.
|
void |
setUserData(java.util.Map<java.lang.String,java.lang.String> data) |
void |
setUserData(java.util.Map<java.lang.String,java.lang.String> data,
java.util.Map<java.lang.String,java.lang.String> customdata) |
void |
setViewTracking(boolean enable) |
boolean |
startEvent(java.lang.String key)
Start timed event with a specified key
|
recordEvent, recordEvent, recordEvent, recordEvent, recordEvent, recordEventvoid init(android.content.Context context,
java.lang.String serverUrl,
java.lang.String appKey)
void init(android.content.Context context,
java.lang.String serverUrl,
java.lang.String appKey,
java.lang.String deviceId)
boolean isInitialized()
void onCreate(android.app.Activity activity)
void onStart(android.app.Activity activity)
void onStop()
void setViewTracking(boolean enable)
boolean isViewTrackingEnabled()
void recordView(java.lang.String viewName)
void setUserData(java.util.Map<java.lang.String,java.lang.String> data)
void setUserData(java.util.Map<java.lang.String,java.lang.String> data,
java.util.Map<java.lang.String,java.lang.String> customdata)
void setCustomUserData(java.util.Map<java.lang.String,java.lang.String> customdata)
void setLocation(double lat,
double lon)
void setCustomCrashSegments(java.util.Map<java.lang.String,java.lang.String> segments)
segments - Map<String, String> key segments and their valuesvoid addCrashLog(java.lang.String record)
record - String a bread crumb for the crash reportvoid logException(java.lang.Exception exception)
exception - Exception to logvoid enableCrashReporting()
boolean startEvent(java.lang.String key)
key - name of the custom event, required, must not be the empty string or nullboolean endEvent(java.lang.String key)
key - name of the custom event, required, must not be the empty string or nullboolean endEvent(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> segmentation,
int count,
double sum)
key - name of the custom event, required, must not be the empty stringsegmentation - segmentation dictionary to associate with the event, can be nullcount - count to associate with the event, should be more than zerosum - sum to associate with the eventjava.lang.IllegalStateException - if void SDK has not been initializedjava.lang.IllegalArgumentException - if key is null or empty, count is less than 1, or if
segmentation contains null or empty keys or valuesvoid setDisableUpdateSessionRequests(boolean disable)
disable - whether or not to disable session time updates
void instance for easy method chainingboolean isLoggingEnabled()
void setLoggingEnabled(boolean enableLogging)
enableLogging - true to enable logging, false to disable logging
void instance for easy method chainingvoid enableParameterTamperingProtection(java.lang.String salt)
void setEventQueueSizeToSend(int size)
void halt()
void changeDeviceId(java.lang.String deviceId)