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

commonMain.epicarchitect.calendar.compose.pager.state.State.kt Maven / Gradle / Ivy

package epicarchitect.calendar.compose.pager.state

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.pager.PagerState
import androidx.compose.runtime.compositionLocalOf
import epicarchitect.calendar.compose.basis.EpicMonth
import epicarchitect.calendar.compose.pager.config.EpicCalendarPagerConfig

@OptIn(ExperimentalFoundationApi::class)
interface EpicCalendarPagerState {
    val config: EpicCalendarPagerConfig
    val currentMonth: EpicMonth
    var monthRange: ClosedRange
    val pagerState: PagerState
    suspend fun scrollToMonth(month: EpicMonth)
    suspend fun scrollYears(amount: Int)
    suspend fun scrollMonths(amount: Int)
}

val LocalEpicCalendarPagerState = compositionLocalOf {
    null
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy