You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FairEmail/app/src/main/java/com/bugsnag/android/ThreadSendPolicy.kt

28 lines
540 B

package com.bugsnag.android
/**
* Controls whether we should capture and serialize the state of all threads at the time
* of an error.
*/
enum class ThreadSendPolicy {
/**
* Threads should be captured for all events.
*/
ALWAYS,
/**
* Threads should be captured for unhandled events only.
*/
UNHANDLED_ONLY,
/**
* Threads should never be captured.
*/
NEVER;
internal companion object {
fun fromString(str: String) = values().find { it.name == str } ?: ALWAYS
}
}