{% setvar book_path %}/reference/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/_java_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 fields

final @NonNull String
final int

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

Public fields

name

@NonNull
public final @NonNull String name

ordinal

@NonNull
public final int ordinal