jvmMain.tech.skot.core.components.SKPagerViewMock.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
class SKPagerViewMock(
screens: List,
onSwipeToPage: ((index: Int) -> Unit)?,
initialSelectedPageIndex: Int,
swipable: Boolean
): SKComponentViewMock(), SKPagerVC {
override var screens: List = screens
override var selectedPageIndex: Int = initialSelectedPageIndex
override val onSwipeToPage = onSwipeToPage
override val swipable: Boolean = swipable
fun userSwipeToPage(index:Int) {
onSwipeToPage?.invoke(index)
}
}
fun SKPagerVC.userSwipeToPage(index:Int) {
(this as SKPagerViewMock).userSwipeToPage(index)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy