OnBackInvokedInputHandler


@RequiresApi(value = 33)
public final class OnBackInvokedInputHandler extends NavigationEventInputHandler


Provides input from OnBackInvokedCallback to the given NavigationEventDispatcher.

Summary

Public constructors

OnBackInvokedInputHandler(
    @NonNull NavigationEventDispatcher dispatcher,
    @NonNull OnBackInvokedDispatcher onBackInvokedDispatcher
)

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

OnBackInvokedInputHandler

Added in 1.0.0-alpha06
public OnBackInvokedInputHandler(
    @NonNull NavigationEventDispatcher dispatcher,
    @NonNull OnBackInvokedDispatcher onBackInvokedDispatcher
)