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

commonMain.moe.tlaster.precompose.navigation.UiClosable.kt Maven / Gradle / Ivy

Go to download

A third-party Jetbrains Compose library with ViewModel, LiveData and Navigation support.

There is a newer version: 1.7.0-alpha03
Show newest version
package moe.tlaster.precompose.navigation

import androidx.compose.runtime.saveable.SaveableStateHolder

interface UiClosable {
    fun close(stateId: String)
}

internal class ComposeUiClosable(
    val composeSaveableStateHolder: SaveableStateHolder,
) : UiClosable {
    override fun close(stateId: String) {
        composeSaveableStateHolder.removeState(stateId)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy