NavigationEventInputHandler


public abstract class NavigationEventInputHandler

Known direct subclasses
DirectNavigationEventInputHandler

An input handler that can send events to a NavigationEventDispatcher.

OnBackInvokedInputHandler

Provides input from OnBackInvokedCallback to the given NavigationEventDispatcher.


An input handler that can send events to a NavigationEventDispatcher.

Summary

Public constructors

Protected methods

final void

Adds a callback that will be notified when the connected dispatcher's hasEnabledCallbacks changes.

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.

Public constructors

Added in 1.0.0-alpha06
public NavigationEventInputHandler(
    @NonNull NavigationEventDispatcher dispatcher
)
Parameters
@NonNull NavigationEventDispatcher dispatcher

The NavigationEventDispatcher to send events to.

Protected methods

addOnHasEnabledCallbacksChangedCallback

Added in 1.0.0-alpha06
@MainThread
protected final void addOnHasEnabledCallbacksChangedCallback(
    @NonNull Function1<@NonNull BooleanUnit> callback
)

Adds a callback that will be notified when the connected dispatcher's hasEnabledCallbacks changes.

Parameters
@NonNull Function1<@NonNull BooleanUnit> callback

The callback to invoke.

dispatchOnCancelled

Added in 1.0.0-alpha06
@MainThread
protected final void dispatchOnCancelled()

Call dispatchOnCancelled on the connected dispatcher.

dispatchOnCompleted

Added in 1.0.0-alpha06
@MainThread
protected final void dispatchOnCompleted()

Call dispatchOnCompleted on the connected dispatcher.

dispatchOnProgressed

Added in 1.0.0-alpha06
@MainThread
protected final void dispatchOnProgressed(@NonNull NavigationEvent event)

Call dispatchOnProgressed on the connected dispatcher.

Parameters
@NonNull NavigationEvent event

The event to dispatch.

dispatchOnStarted

Added in 1.0.0-alpha06
@MainThread
protected final void dispatchOnStarted(@NonNull NavigationEvent event)

Call dispatchOnStarted on the connected dispatcher.

Parameters
@NonNull NavigationEvent event

The event to dispatch.