jvmMain.tech.skot.core.components.SKScreenViewMock.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viewmodelTests Show documentation
Show all versions of viewmodelTests Show documentation
viewmodelTests description
package tech.skot.core.components
import tech.skot.core.view.Color
open class SKScreenViewMock: SKComponentViewMock(), SKScreenVC {
override var onBackPressed: (() -> Unit)? = null
fun backPressed() {
onBackPressed?.invoke()
}
override var statusBarColor: Color? = null
}
fun SKScreenVC.backPressed() {
(this as SKScreenViewMock).backPressed()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy