{% setvar book_path %}/reference/kotlin/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 |
val RemoteMediator.InitializeAction.LAUNCH_INITIAL_REFRESH: RemoteMediator.InitializeAction
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.
val RemoteMediator.InitializeAction.SKIP_INITIAL_REFRESH: RemoteMediator.InitializeAction
Wait for a refresh request from the UI before dispatching load
with load type REFRESH