RemoteMediator.InitializeAction

enum RemoteMediator.InitializeAction


Return type of initialize, which signals the action to take after initialize completes.

Summary

Enum Values

LAUNCH_INITIAL_REFRESH

Immediately dispatch a load asynchronously with load type REFRESH, to update paginated content when the stream is initialized.

SKIP_INITIAL_REFRESH

Wait for a refresh request from the UI before dispatching load with load type REFRESH

Enum Values

LAUNCH_INITIAL_REFRESH

@NonNull
@NonNull RemoteMediator.InitializeAction RemoteMediator.InitializeAction.LAUNCH_INITIAL_REFRESH

Immediately dispatch a load asynchronously with load type REFRESH, to update paginated content when the stream is initialized.

Note: This also prevents RemoteMediator from triggering PREPEND or APPEND until REFRESH succeeds.

SKIP_INITIAL_REFRESH

@NonNull
@NonNull RemoteMediator.InitializeAction RemoteMediator.InitializeAction.SKIP_INITIAL_REFRESH

Wait for a refresh request from the UI before dispatching load with load type REFRESH