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

Cmn

Protected functions

Unit

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

Cmn
Unit

Call dispatchOnCancelled on the connected dispatcher.

Cmn
Unit

Call dispatchOnCompleted on the connected dispatcher.

Cmn
Unit

Call dispatchOnProgressed on the connected dispatcher.

Cmn
Unit

Call dispatchOnStarted on the connected dispatcher.

Cmn

Public constructors

NavigationEventInputHandler(dispatcher: NavigationEventDispatcher)
Parameters
dispatcher: NavigationEventDispatcher

The NavigationEventDispatcher to send events to.

Protected functions

addOnHasEnabledCallbacksChangedCallback

@MainThread
protected fun addOnHasEnabledCallbacksChangedCallback(callback: (Boolean) -> Unit): Unit

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

Parameters
callback: (Boolean) -> Unit

The callback to invoke.

dispatchOnCancelled

@MainThread
protected fun dispatchOnCancelled(): Unit

Call dispatchOnCancelled on the connected dispatcher.

dispatchOnCompleted

@MainThread
protected fun dispatchOnCompleted(): Unit

Call dispatchOnCompleted on the connected dispatcher.

dispatchOnProgressed

@MainThread
protected fun dispatchOnProgressed(event: NavigationEvent): Unit

Call dispatchOnProgressed on the connected dispatcher.

Parameters
event: NavigationEvent

The event to dispatch.

dispatchOnStarted

@MainThread
protected fun dispatchOnStarted(event: NavigationEvent): Unit

Call dispatchOnStarted on the connected dispatcher.

Parameters
event: NavigationEvent

The event to dispatch.