paging/common/src/main/java/androidx/paging/DataSource.java
@AnyThread
    @SuppressWarnings("WeakerAccess")
    public void addInvalidatedCallback(@NonNull InvalidatedCallback onInvalidatedCallback) {
        mOnInvalidatedCallbacks.add(onInvalidatedCallback);
    }
/**
     * Add a callback to invoke when the DataSource is first invalidated.
     * <p>
     * Once invalidated, a data source will not become valid again.
     * <p>
     * A data source will only invoke its callbacks once - the first time {@link #invalidate()}
     * is called, on that thread.
     *
     * @param onInvalidatedCallback The callback, will be invoked on thread that
     *                              {@link #invalidate()} is called on.
     */
Add a callback to invoke when the DataSource is first invalidated.

Once invalidated, a data source will not become valid again.

A data source will only invoke its callbacks once - the first time  #invalidate()
is called, on that thread.

@param onInvalidatedCallback The callback, will be invoked on thread that
#invalidate() is called on.
Add a callback to invoke when the DataSource is first invalidated . Once invalidated a data source will not become valid again . A data source will only invoke its callbacks once - the first time #invalidate () is called on that thread . @param onInvalidatedCallback The callback will be invoked on thread that #invalidate () is called on .
@AnyThread
    @SuppressWarnings("WeakerAccess")
    public void addInvalidatedCallback(@NonNull InvalidatedCallback onInvalidatedCallback) {
        mOnInvalidatedCallbacks.add(onInvalidatedCallback);
    }
@ AnyThread @ SuppressWarnings ( "WeakerAccess" ) public void addInvalidatedCallback ( @ NonNull InvalidatedCallback onInvalidatedCallback ) { mOnInvalidatedCallbacks . add ( onInvalidatedCallback ) ; }
Add a callback to invoke when the DataSource is first invalidated.
Add a callback to invoke when the DataSource is first invalidated .