2021-05-15 20:03:05 +00:00
|
|
|
package com.bugsnag.android
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents the type of thread captured
|
|
|
|
*/
|
|
|
|
enum class ThreadType(internal val desc: String) {
|
|
|
|
|
2022-06-23 18:23:15 +00:00
|
|
|
/**
|
|
|
|
* A thread captured from Android's JVM layer
|
|
|
|
*/
|
|
|
|
EMPTY(""),
|
|
|
|
|
2021-05-15 20:03:05 +00:00
|
|
|
/**
|
|
|
|
* A thread captured from Android's JVM layer
|
|
|
|
*/
|
|
|
|
ANDROID("android"),
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A thread captured from Android's NDK layer
|
|
|
|
*/
|
|
|
|
C("c"),
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A thread captured from JavaScript
|
|
|
|
*/
|
2022-02-03 17:36:29 +00:00
|
|
|
REACTNATIVEJS("reactnativejs");
|
|
|
|
|
|
|
|
internal companion object {
|
|
|
|
internal fun fromDescriptor(desc: String) = ThreadType.values().find { it.desc == desc }
|
|
|
|
}
|
2021-05-15 20:03:05 +00:00
|
|
|
}
|