public interface CrashDataHandler
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all persisted crash data entries.
|
int |
countOfCrashes(long fromTimestamp)
Returns the count of crash data entries that were persisted after
the given time.
|
java.util.List<CrashData> |
getAll() |
CrashData |
getLatest()
Gets the latest crashdata and resets the internal
unhandled crash flag
|
boolean |
hasUnhandledCrash()
If
persistCrashData(CrashData) was called this will return
true until getLatest() is called. |
void |
persistCrashData(CrashData crashData)
Persists a new crashdata
|
int |
size() |
CrashData getLatest()
java.util.List<CrashData> getAll()
int size()
boolean hasUnhandledCrash()
persistCrashData(CrashData) was called this will return
true until getLatest() is called. Not every crash must be handled.
One call to getLatest() will reset multiple new crash data.
This is for checking after the app restarts if an crash occurred.
void persistCrashData(CrashData crashData)
crashData - to persistint countOfCrashes(long fromTimestamp)
fromTimestamp - timestamp from Datevoid clear()