Package icyllis.modernui.fragment

# Interface OnBackPressedDispatcherOwner

All Superinterfaces:
  `LifecycleOwner`

public interface OnBackPressedDispatcherOwner extends LifecycleOwner
A class that has an `OnBackPressedDispatcher` that allows you to register a `OnBackPressedCallback` for handling the system back button.

It is expected that classes that implement this interface route the system back button to the dispatcher

See Also:
  - `OnBackPressedDispatcher`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `OnBackPressedDispatcher`
  `getOnBackPressedDispatcher()`
  Retrieve the `OnBackPressedDispatcher` that should handle the system back button.

  ### Methods inherited from interface icyllis.modernui.lifecycle.LifecycleOwner

  `getLifecycle`

- ## Method Details

  - ### getOnBackPressedDispatcher

    @Nonnull OnBackPressedDispatcher getOnBackPressedDispatcher()
    Retrieve the `OnBackPressedDispatcher` that should handle the system back button.
    Returns:
      The `OnBackPressedDispatcher`.