commonMain.cinematic.LazyScene.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cinematic-scene-core Show documentation
Show all versions of cinematic-scene-core Show documentation
A multiplatfrom library for authoring Scenes (viewmodel) in an MVIVM architecture
@file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
@file:OptIn(ExperimentalJsExport::class)
package cinematic
import kase.LazyState
import kase.Pending
import kase.Success
import kotlin.js.ExperimentalJsExport
import kotlinx.JsExport
import kotlinx.JsExportIgnore
import kotlin.js.JsName
abstract class LazyScene(state: LazyState) : Scene>(state) {
@JsExportIgnore
constructor() : this(Pending)
@JsExportIgnore
constructor(state: S) : this(Success(state))
open fun deInitialize() {
ui.value = Pending
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy