Package-level declarations

Types

Link copied to clipboard
data class ViewPager2PageScrollEvent(val view: ViewPager2, val position: Int, val positionOffset: Float, val positionOffsetPixel: Int)

Functions

Link copied to clipboard

Create a Flow of page scroll events on the ViewPager2 instance.

Link copied to clipboard

Create a Flow of page scroll state change events on the ViewPager2 instance where the value emitted can be one of SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING} or SCROLL_STATE_SETTLING.

Link copied to clipboard

Create a InitialValueFlow of page selected events on the ViewPager2 instance where the value emitted is the position index of the new selected page.