ScheduleState

State holder for DaySchedule and WeekSchedule: the horizontally paged date window, the shared vertical scroll of the 24-hour grid, and the zoomable hourHeight.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var endDate: LocalDate?

Inclusive range end; null pages unboundedly into the future.

Link copied to clipboard
var firstDayOfWeek: DayOfWeek
Link copied to clipboard
var firstVisibleDate: LocalDate

First visible date: the shown day in DaySchedule; in WeekSchedule the page's first day after a swipe, or the date passed to scrollToDate.

Link copied to clipboard

Height of one 60-minute slot; mutable for pinch-to-zoom or programmatic zoom. Values are clamped to minHourHeight..maxHourHeight.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var startDate: LocalDate?

Inclusive range start; null pages unboundedly into the past.

Link copied to clipboard

Vertical scroll state of the 24-hour time grid (shared across columns and pages).

Functions

Link copied to clipboard
suspend fun animateScrollToDate(date: LocalDate)
Link copied to clipboard
suspend fun animateScrollToTime(time: LocalTime, density: Density)

Animates the vertical time grid so time is at the top of the viewport.

Link copied to clipboard
suspend fun scrollToDate(date: LocalDate)
Link copied to clipboard
suspend fun scrollToTime(time: LocalTime, density: Density)

Scrolls the vertical time grid so time is at the top of the viewport.