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

27 lines
750 B
Kotlin

package com.bugsnag.android
internal class ClientObservable : BaseObservable() {
fun postOrientationChange(orientation: String?) {
notifyObservers(StateEvent.UpdateOrientation(orientation))
}
fun postNdkInstall(conf: ImmutableConfig, lastRunInfoPath: String, consecutiveLaunchCrashes: Int) {
notifyObservers(
StateEvent.Install(
conf.apiKey,
conf.enabledErrorTypes.ndkCrashes,
conf.appVersion,
conf.buildUuid,
conf.releaseStage,
lastRunInfoPath,
consecutiveLaunchCrashes
)
)
}
fun postNdkDeliverPending() {
notifyObservers(StateEvent.DeliverPending)
}
}