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

commonMain.de.halfbit.componental.lifecycle.LifecycleOwner.kt Maven / Gradle / Ivy

package de.halfbit.componental.lifecycle

public interface LifecycleOwner {
    public val lifecycle: Lifecycle

    public companion object {
        public fun create(
            lifecycle: Lifecycle,
        ): LifecycleOwner =
            object : LifecycleOwner {
                override val lifecycle: Lifecycle
                    get() = lifecycle
            }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy