Google 致力于为黑人社区推动种族平等。查看具体举措

androidx.activity

Interfaces

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

Classes

ComponentActivity Base class for activities that enables composition of higher level components. 
OnBackPressedCallback Class for handling OnBackPressedDispatcher.onBackPressed() callbacks without strongly coupling that implementation to a subclass of ComponentActivity
OnBackPressedDispatcher Dispatcher that can be used to register OnBackPressedCallback instances for handling the ComponentActivity.onBackPressed() callback via composition.