onPageSelected

abstract fun onPageSelected(position: Int)

This method will be invoked when a new page becomes selected. Animation is not necessarily complete.

Parameters

position

Position index of the new selected page.