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

Send "cancel" event to the connected dispatcher.

Cmn
Unit

Send "complete" event to the connected dispatcher.

Cmn
Unit

Send "progress" event to the connected dispatcher.

Cmn
Unit

Send "start" event to the connected dispatcher.

Cmn

Inherited functions

From androidx.navigationevent.NavigationEventInput
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

DirectNavigationEventInput

DirectNavigationEventInput()

Public functions

cancel

@MainThread
fun cancel(): Unit

Send "cancel" event to the connected dispatcher.

complete

@MainThread
fun complete(): Unit

Send "complete" event to the connected dispatcher.

progress

@MainThread
fun progress(event: NavigationEvent): Unit

Send "progress" event to the connected dispatcher.

start

@MainThread
fun start(event: NavigationEvent): Unit

Send "start" event to the connected dispatcher.