All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.moe.tlaster.precompose.lifecycle.Lifecycle.kt Maven / Gradle / Ivy

Go to download

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