Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

OnBackPressedDispatcherOwner

interface OnBackPressedDispatcherOwner : LifecycleOwner
androidx.activity.OnBackPressedDispatcherOwner

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

Summary

Public methods
abstract OnBackPressedDispatcher

Retrieve the OnBackPressedDispatcher that should handle the system back button.

Inherited functions

Public methods

getOnBackPressedDispatcher

@NonNull abstract fun getOnBackPressedDispatcher(): OnBackPressedDispatcher

Retrieve the OnBackPressedDispatcher that should handle the system back button.

Return
OnBackPressedDispatcher The OnBackPressedDispatcher.