onPageSwipe

abstract fun onPageSwipe(pagerData: PagerData, toPageIndex: Int, toPageId: String, fromPageIndex: Int, fromPageId: String, state: LayoutData)

Called when a pager changes its page due to a swipe gesture.

Parameters

pagerData

The pager data.

toPageIndex

The resulting page index.

toPageId

The page resulting page Id.

fromPageIndex

The page index that the swipe originated on.

fromPageId

The page Id that the swipe originated on.

state

The layout state.