DirectNavigationEventInputHandler


public final class DirectNavigationEventInputHandler extends NavigationEventInputHandler


An input handler that can send events to a NavigationEventDispatcher.

Summary

Public constructors

Inherited methods

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

DirectNavigationEventInputHandler

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

The NavigationEventDispatcher to send events to.

Public methods

handleOnCancelled

Added in 1.0.0-alpha06
@MainThread
public final void handleOnCancelled()

handleOnCompleted

Added in 1.0.0-alpha06
@MainThread
public final void handleOnCompleted()

handleOnProgressed

Added in 1.0.0-alpha06
@MainThread
public final void handleOnProgressed(@NonNull NavigationEvent event)

handleOnStarted

Added in 1.0.0-alpha06
@MainThread
public final void handleOnStarted(@NonNull NavigationEvent event)