androidMain.tech.skot.core.components.SKRootStackViewProxy.kt Maven / Gradle / Ivy
package tech.skot.core.components
import androidx.fragment.app.Fragment
import tech.skot.core.SKLog
import tech.skot.view.SKTransitionAndroidLegacy
import tech.skot.view.live.MutableSKLiveData
import tech.skot.view.live.SKMessage
object SKRootStackViewProxy : SKComponentViewProxy(), SKStackVC {
val stateLD: MutableSKLiveData =
MutableSKLiveData(StateProxy(emptyList(), null))
override var state: SKStackVC.State = StateProxy(screens = emptyList(), transition = null)
set(newVal) {
val newProxyList = newVal.screens as List>
field = newVal
stateLD.postValue(
StateProxy(
screens = newProxyList,
transition = newVal.transition as SKTransitionAndroidLegacy?
)
)
}
override fun bindTo(
activity: SKActivity,
fragment: Fragment?,
binding: Unit
): SKComponentView {
throw IllegalAccessException("On ne bind pas la RootStack")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy