SimpleOnPageChangeListener

Simple implementation of the OnPageChangeListener interface with stub implementations of each method. Extend this if you do not intend to override every method of OnPageChangeListener.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int)
This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch scroll.
Link copied to clipboard
open fun onPageScrollStateChanged(state: Int)
Called when the scroll state changes.
Link copied to clipboard
open fun onPageSelected(position: Int)
This method will be invoked when a new page becomes selected.