DirectNavigationEventInput


public final class DirectNavigationEventInput extends NavigationEventInput


An input that can send events to a NavigationEventDispatcher. Instead of subclassing NavigationEventInput, users can create instances of this class and use it directly.

Summary

Public constructors

Public methods

final void

Send "cancel" event to the connected dispatcher.

final void

Send "complete" event to the connected dispatcher.

final void

Send "progress" event to the connected dispatcher.

final void

Send "start" event to the connected dispatcher.

Inherited methods

From androidx.navigationevent.NavigationEventInput
final void

Call dispatchOnCancelled on the connected dispatcher.

final void

Call dispatchOnCompleted on the connected dispatcher.

final void

Call dispatchOnProgressed on the connected dispatcher.

final void

Call dispatchOnStarted on the connected dispatcher.

void

Called after this NavigationEventInput is added to dispatcher.

void
@MainThread
@EmptySuper
onHasEnabledCallbacksChanged(boolean hasEnabledCallbacks)

Callback that will be notified when the connected dispatcher's hasEnabledCallbacks changes.

void

Called after this NavigationEventInput is removed from a NavigationEventDispatcher.

Public constructors

DirectNavigationEventInput

Added in 1.0.0-alpha07
public DirectNavigationEventInput()

Public methods

cancel

Added in 1.0.0-alpha07
@MainThread
public final void cancel()

Send "cancel" event to the connected dispatcher.

complete

Added in 1.0.0-alpha07
@MainThread
public final void complete()

Send "complete" event to the connected dispatcher.

progress

Added in 1.0.0-alpha07
@MainThread
public final void progress(@NonNull NavigationEvent event)

Send "progress" event to the connected dispatcher.

start

Added in 1.0.0-alpha07
@MainThread
public final void start(@NonNull NavigationEvent event)

Send "start" event to the connected dispatcher.