Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ViewPager2.back(animate: Boolean = true)
Link copied to clipboard

Checks if ViewPager can swipe back.

Link copied to clipboard

Checks if ViewPager can swipe next

Link copied to clipboard
fun ViewPager2.forward(animate: Boolean = true)
Link copied to clipboard

Swipes ViewPager next

Link copied to clipboard

Swipes ViewPager back

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ViewPager2.listener(onPageScrollStateChanged: (state: Int) -> Unit = { _ -> }, onPageSelected: (position: Int) -> Unit = { _ -> }, onPageScrolled: (position: Int, positionOffset: Float, positionOffsetPixels: Int) -> Unit = { _, _, _ -> })
Link copied to clipboard
fun ViewPager2.next(lastCallback: () -> Unit)
Link copied to clipboard
Link copied to clipboard
fun ViewPager2.onPageScrolled(onPageSelected: (position: Int) -> Unit = { _ -> })
Link copied to clipboard
fun ViewPager2.onPageScrollStateChanged(onPageScrollStateChanged: (state: Int) -> Unit = { _ -> })
Link copied to clipboard
fun ViewPager2.onPageSelected(onPageSelected: (position: Int) -> Unit = { _ -> })
Link copied to clipboard

Set the page width for view pager 2 content

Link copied to clipboard
fun ViewPager2.syncScrolling(other: ViewPager2, multiplier: Float = 1.0f)

Sync scrolling with another viewpager by a specific multiplier