A Visualização do desenvolvedor para Android 11 já está disponível. Teste e compartilhe seu 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.