FairEmail/app/src/main/java/com/bugsnag/android/ThreadType.kt

32 lines
614 B
Kotlin
Raw Normal View History

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
}