-
- All Implemented Interfaces:
-
com.google.android.horologist.compose.rotaryinput.RotaryScrollAdapter
@Deprecated(message = Replaced by wear compose) public final class ScalingLazyColumnRotaryScrollAdapter implements RotaryScrollAdapter
An implementation of rotary scroll adapter for ScalingLazyColumn
-
-
Field Summary
Fields Modifier and Type Field Description private final ScalingLazyListStatescrollableState
-
Constructor Summary
Constructors Constructor Description ScalingLazyColumnRotaryScrollAdapter(ScalingLazyListState scrollableState)
-
Method Summary
Modifier and Type Method Description ScalingLazyListStategetScrollableState()A scrollable state. FloataverageItemSize()Calculates an average height of an item by taking an average from visible items height. IntegercurrentItemIndex()Current (centred) item index FloatcurrentItemOffset()An offset from the item centre IntegertotalItemsCount()The total count of items in ScalingLazyColumn -
-
Method Detail
-
getScrollableState
ScalingLazyListState getScrollableState()
A scrollable state. Used for performing scroll when Rotary events received
-
averageItemSize
Float averageItemSize()
Calculates an average height of an item by taking an average from visible items height.
-
currentItemIndex
Integer currentItemIndex()
Current (centred) item index
-
currentItemOffset
Float currentItemOffset()
An offset from the item centre
-
totalItemsCount
Integer totalItemsCount()
The total count of items in ScalingLazyColumn
-
-
-
-