DirectNavigationEventInput



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

Cmn

Public functions

Unit

Dispatch a back cancelled event with the connected dispatcher.

Cmn
Unit

Dispatch a back completed event with the connected dispatcher.

Cmn
Unit

Dispatch a back progressed event with the connected dispatcher.

Cmn
Unit

Dispatch a back started event with the connected dispatcher.

Cmn
Unit

Dispatch a forward cancelled event with the connected dispatcher.

Cmn
Unit

Dispatch a forward completed event with the connected dispatcher.

Cmn
Unit

Dispatch a forward progressed event with the connected dispatcher.

Cmn
Unit

Dispatch a forward started event with the connected dispatcher.

Cmn

Inherited functions

From androidx.navigationevent.NavigationEventInput
Unit

Notifies the dispatcher that the ongoing TRANSITIONING_BACK navigation gesture has been cancelled.

Cmn
Unit

Notifies the dispatcher that the ongoing TRANSITIONING_BACK navigation gesture has completed.

Cmn
Unit

Notifies the dispatcher that an ongoing TRANSITIONING_BACK navigation gesture has progressed.

Cmn
Unit

Notifies the dispatcher that a TRANSITIONING_BACK navigation gesture has started.

Cmn
Unit

Notifies the dispatcher that the ongoing TRANSITIONING_FORWARD navigation gesture has been cancelled.

Cmn
Unit

Notifies the dispatcher that the ongoing TRANSITIONING_FORWARD navigation gesture has completed.

Cmn
Unit

Notifies the dispatcher that an ongoing TRANSITIONING_FORWARD navigation gesture has progressed.

Cmn
Unit

Notifies the dispatcher that a TRANSITIONING_FORWARD navigation gesture has started.

Cmn
open Unit

Called after this NavigationEventInput is added to dispatcher.

Cmn
open Unit

Called when the enabled state of handlers in the connected NavigationEventDispatcher changes.

Cmn
open Unit

Called when the NavigationEventHistory state in the connected NavigationEventDispatcher changes.

Cmn
open Unit

Called after this NavigationEventInput is removed from a NavigationEventDispatcher.

Cmn

Public constructors

DirectNavigationEventInput

DirectNavigationEventInput()

Public functions

backCancelled

@MainThread
fun backCancelled(): Unit

Dispatch a back cancelled event with the connected dispatcher.

backCompleted

@MainThread
fun backCompleted(): Unit

Dispatch a back completed event with the connected dispatcher.

backProgressed

@MainThread
fun backProgressed(event: NavigationEvent): Unit

Dispatch a back progressed event with the connected dispatcher.

Parameters
event: NavigationEvent

The NavigationEvent to dispatch.

backStarted

@MainThread
fun backStarted(event: NavigationEvent): Unit

Dispatch a back started event with the connected dispatcher.

Parameters
event: NavigationEvent

The NavigationEvent to dispatch.

forwardCancelled

@MainThread
fun forwardCancelled(): Unit

Dispatch a forward cancelled event with the connected dispatcher.

forwardCompleted

@MainThread
fun forwardCompleted(): Unit

Dispatch a forward completed event with the connected dispatcher.

forwardProgressed

@MainThread
fun forwardProgressed(event: NavigationEvent): Unit

Dispatch a forward progressed event with the connected dispatcher.

Parameters
event: NavigationEvent

The NavigationEvent to dispatch.

forwardStarted

@MainThread
fun forwardStarted(event: NavigationEvent): Unit

Dispatch a forward started event with the connected dispatcher.

Parameters
event: NavigationEvent

The NavigationEvent to dispatch.