Register now for Android Dev Summit 2019!

OnScrollListener

abstract class OnScrollListener
kotlin.Any
   ↳ androidx.car.widget.PagedListView.OnScrollListener

Used to listen for PagedListView scroll events.

Summary

Public constructors

Used to listen for PagedListView scroll events.

Public methods

open Unit

Called when the PagedListView has been scrolled so that the last item is completely visible.

open Unit

Called when scroll down button is clicked

open Unit
onScrollStateChanged(recyclerView: RecyclerView!, newState: Int)

See RecyclerView.

open Unit

Called when scroll up button is clicked

open Unit
onScrolled(recyclerView: RecyclerView!, dx: Int, dy: Int)

Called when RecyclerView.

Public constructors

<init>

OnScrollListener()

Used to listen for PagedListView scroll events.

Public methods

onReachBottom

open fun onReachBottom(): Unit

Called when the PagedListView has been scrolled so that the last item is completely visible.

onScrollDownButtonClicked

open fun onScrollDownButtonClicked(): Unit

Called when scroll down button is clicked

onScrollStateChanged

open fun onScrollStateChanged(recyclerView: RecyclerView!, newState: Int): Unit

See RecyclerView.OnScrollListener

onScrollUpButtonClicked

open fun onScrollUpButtonClicked(): Unit

Called when scroll up button is clicked

onScrolled

open fun onScrolled(recyclerView: RecyclerView!, dx: Int, dy: Int): Unit

Called when RecyclerView.OnScrollListener#onScrolled is called. See RecyclerView.OnScrollListener