NavigationEventInput


Known direct subclasses
DirectNavigationEventInput

An input that can send events to a NavigationEventDispatcher.

OnBackInvokedInput

Provides input from OnBackInvokedCallback to the given NavigationEventDispatcher.


A class that can send events to a NavigationEventDispatcher.

Summary

Public constructors

Cmn

Protected functions

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
open Unit

Called after this NavigationEventInput is added to dispatcher.

Cmn
open Unit

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

Cmn
open Unit

Called after this NavigationEventInput is removed from a NavigationEventDispatcher.

Cmn

Public constructors

NavigationEventInput()

Protected functions

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.

onAdded

@MainThread
@EmptySuper
protected open fun onAdded(dispatcher: NavigationEventDispatcher): Unit

Called after this NavigationEventInput is added to dispatcher. This can happen when calling NavigationEventDispatcher.addInput. A NavigationEventInput can only be added to one NavigationEventDispatcher at a time.

Parameters
dispatcher: NavigationEventDispatcher

The NavigationEventDispatcher that this input is now added to.

onHasEnabledCallbacksChanged

@MainThread
@EmptySuper
protected open fun onHasEnabledCallbacksChanged(hasEnabledCallbacks: Boolean): Unit

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

Parameters
hasEnabledCallbacks: Boolean

Whether the connected dispatcher has any enabled callbacks.

onRemoved

@MainThread
@EmptySuper
protected open fun onRemoved(): Unit

Called after this NavigationEventInput is removed from a NavigationEventDispatcher. This can happen when calling NavigationEventDispatcher.removeInput or NavigationEventDispatcher.dispose on the containing NavigationEventDispatcher.