Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnRefreshListener

interface OnRefreshListener
androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener

Classes that wish to be notified when the swipe gesture correctly triggers a refresh should implement this interface.

Summary

Public methods
abstract Unit

Called when a swipe gesture triggers a refresh.

Public methods

onRefresh

abstract fun onRefresh(): Unit

Called when a swipe gesture triggers a refresh.