commonMain.moe.tlaster.precompose.lifecycle.Lifecycle.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of precompose-jvm Show documentation
Show all versions of precompose-jvm Show documentation
A third-party Jetbrains Compose library with ViewModel, LiveData and Navigation support.
The newest version!
package moe.tlaster.precompose.lifecycle
import kotlinx.coroutines.flow.StateFlow
interface Lifecycle {
enum class State {
Initialized,
Active,
InActive,
Destroyed,
}
val currentState: State
val currentStateFlow: StateFlow
fun removeObserver(observer: LifecycleObserver)
fun addObserver(observer: LifecycleObserver)
fun hasObserver(): Boolean
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy