-
@Deprecated(message = Replaced by wear compose) public interface RotaryScrollAdapter
An adapter which connects scrollableState to Rotary
-
-
Method Summary
Modifier and Type Method Description abstract FloataverageItemSize()Average size of an item. abstract IntegercurrentItemIndex()A current item index. abstract FloatcurrentItemOffset()An offset from the centre or the border of the current item. abstract IntegertotalItemsCount()The total count of items in scrollableState abstract ScrollableStategetScrollableState()A scrollable state. -
-
Method Detail
-
averageItemSize
abstract Float averageItemSize()
Average size of an item. Used for estimating the scrollable distance
-
currentItemIndex
abstract Integer currentItemIndex()
A current item index. Used for scrolling
-
currentItemOffset
abstract Float currentItemOffset()
An offset from the centre or the border of the current item.
-
totalItemsCount
abstract Integer totalItemsCount()
The total count of items in scrollableState
-
getScrollableState
abstract ScrollableState getScrollableState()
A scrollable state. Used for performing scroll when Rotary events received
-
-
-
-