{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RemoteMediator.InitializeAction

{% setvar page_path %}androidx/paging/RemoteMediator.InitializeAction.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

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

Public properties

String
Int

Enum Values

LAUNCH_INITIAL_REFRESH

val RemoteMediator.InitializeAction.LAUNCH_INITIAL_REFRESHRemoteMediator.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.

SKIP_INITIAL_REFRESH

val RemoteMediator.InitializeAction.SKIP_INITIAL_REFRESHRemoteMediator.InitializeAction

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

Public properties

name

val nameString

ordinal

val ordinalInt