{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum RemoteMediator.InitializeAction
Return type of initialize
, which signals the action to take after initialize
completes.
Enum Values |
|
---|---|
LAUNCH_INITIAL_REFRESH |
Immediately dispatch a |
SKIP_INITIAL_REFRESH |
Wait for a refresh request from the UI before dispatching |
@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.
@NonNull
@NonNull RemoteMediator.InitializeAction RemoteMediator.InitializeAction.SKIP_INITIAL_REFRESH
Wait for a refresh request from the UI before dispatching load
with load type REFRESH