-
- All Implemented Interfaces:
-
androidx.compose.foundation.lazy.LazyListLayoutInfo
public final class WeekCalendarLayoutInfo implements LazyListLayoutInfoContains useful information about the currently displayed layout state of the calendar. For example you can get the list of currently displayed months.
Use WeekCalendarState.layoutInfo to retrieve this.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<WeekCalendarItemInfo>visibleWeeksInfoprivate final IntegerafterContentPaddingprivate final IntegerbeforeContentPaddingprivate final Orientationorientationprivate final BooleanreverseLayoutprivate final IntegertotalItemsCountprivate final IntegerviewportEndOffsetprivate final IntSizeviewportSizeprivate final IntegerviewportStartOffsetprivate final List<LazyListItemInfo>visibleItemsInfo
-
Constructor Summary
Constructors Constructor Description WeekCalendarLayoutInfo(LazyListLayoutInfo info, Function1<Integer, Week> getIndexData)
-
Method Summary
Modifier and Type Method Description final List<WeekCalendarItemInfo>getVisibleWeeksInfo()IntegergetAfterContentPadding()IntegergetBeforeContentPadding()OrientationgetOrientation()BooleangetReverseLayout()IntegergetTotalItemsCount()IntegergetViewportEndOffset()IntSizegetViewportSize()IntegergetViewportStartOffset()List<LazyListItemInfo>getVisibleItemsInfo()-
-
Constructor Detail
-
WeekCalendarLayoutInfo
WeekCalendarLayoutInfo(LazyListLayoutInfo info, Function1<Integer, Week> getIndexData)
-
-
Method Detail
-
getVisibleWeeksInfo
final List<WeekCalendarItemInfo> getVisibleWeeksInfo()
-
getAfterContentPadding
Integer getAfterContentPadding()
-
getBeforeContentPadding
Integer getBeforeContentPadding()
-
getOrientation
Orientation getOrientation()
-
getReverseLayout
Boolean getReverseLayout()
-
getTotalItemsCount
Integer getTotalItemsCount()
-
getViewportEndOffset
Integer getViewportEndOffset()
-
getViewportSize
IntSize getViewportSize()
-
getViewportStartOffset
Integer getViewportStartOffset()
-
getVisibleItemsInfo
List<LazyListItemInfo> getVisibleItemsInfo()
-
-
-
-