Android 11 开发者预览版现已推出;快来测试并分享您的反馈吧

SwipeRefreshLayout.OnRefreshListener

public static interface SwipeRefreshLayout.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 void onRefresh()

Called when a swipe gesture triggers a refresh.

Public methods

onRefresh

public abstract void onRefresh ()

Called when a swipe gesture triggers a refresh.