object CrashMonitor
captureAllThreadStackTraces
()
|
Signature
fun captureAllThreadStackTraces(): Map<String, List<String>> Returns Map<String, List<String>> |
captureCurrentStackTrace
()
|
Signature
fun captureCurrentStackTrace(): List<String> Returns List<String> |
clearHistory
()
|
Signature
fun clearHistory() |
exportCrashReport
()
|
Signature
fun exportCrashReport(): JSONObject Returns JSONObject |
getCrashHistory
()
|
Signature
fun getCrashHistory(): List<CrashMonitor.CrashInfo> Returns List<CrashMonitor.CrashInfo> |
getFirstCrash
()
|
Signature
fun getFirstCrash(): CrashMonitor.CrashInfo? Returns CrashMonitor.CrashInfo? |
getLastCrash
()
|
Signature
fun getLastCrash(): CrashMonitor.CrashInfo? Returns CrashMonitor.CrashInfo? |
install
(
packageName
)
|
Signature
fun install(packageName: String) Parameters packageName: String |
uninstall
()
|
Signature
fun uninstall() |
data class CrashInfo(
val timestamp: Long,
val exceptionType: String,
val message: String,
val stackTrace: List<String>,
val threadName: String,
)CrashInfo
(
timestamp
, exceptionType
, message
, stackTrace
, threadName
)
|
Signature
constructor(
timestamp: Long,
exceptionType: String,
message: String,
stackTrace: List<String>,
threadName: String,
)Parameters timestamp: LongexceptionType: Stringmessage: StringstackTrace: List<String>threadName: StringReturns CrashMonitor.CrashInfo |
exceptionType
: String
[Get] |
Signature
val exceptionType: String |
message
: String
[Get] |
Signature
val message: String |
stackTrace
: List<String>
[Get] |
Signature
val stackTrace: List<String> |
threadName
: String
[Get] |
Signature
val threadName: String |
timestamp
: Long
[Get] |
Signature
val timestamp: Long |
toJson
()
|
Signature
fun toJson(): JSONObject Returns JSONObject |