PagerScope

@Stable()
interface PagerScope

Scope for HorizontalPager content.

Properties

currentPage
Link copied to clipboard
abstract val currentPage: Int
Returns the current selected page
currentPageOffset
Link copied to clipboard
abstract val currentPageOffset: Float
The current offset from the start of currentPage, as a ratio of the page width.

Extensions

calculateCurrentOffsetForPage
Link copied to clipboard
fun PagerScope.calculateCurrentOffsetForPage(page: Int): Float
Calculate the offset for the given page from the current scroll position.