이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

DataSource.InvalidatedCallback

public static interface DataSource.InvalidatedCallback

androidx.paging.DataSource.InvalidatedCallback


Invalidation callback for DataSource.

Used to signal when a DataSource a data source has become invalid, and that a new data source is needed to continue loading data.

Summary

Public methods

abstract void onInvalidated()

Called when the data backing the list has become invalid.

Public methods

onInvalidated

public abstract void onInvalidated ()

Called when the data backing the list has become invalid. This callback is typically used to signal that a new data source is needed.

This callback will be invoked on the thread that calls DataSource.invalidate(). It is valid for the data source to invalidate itself during its load methods, or for an outside source to invalidate it.