1.12.0-alpha01
Added 3
- ComponentActivity and ComponentDialog are integrated with NavigationEvent 1.0.0-alpha01 via the NavigationEventDispatcherOwner API
- A NavigationEventDispatcher can be retrieved from ComponentActivity via the navigationEventDispatcher field
- NavigationEventDispatcher and NavigationEventCallback are the recommended APIs going forward
Changed 1
- OnBackPressedDispatcher is re-written on top of the NavigationEvent library, and existing usages continue to work correctly
From AndroidX Activity
New Features ComponentActivity and ComponentDialog have been integrated with NavigationEvent 1.0.0-alpha01 via the NavigationEventDispatcherOwner API. You can now retrieve a NavigationEventDispatcher from your ComponentActivity via the navigationEventDispatcher field. Since the OnBackPressedDispatcher has been re-written on top of the new library all previous usages should continue to work correctly. You should use NavigationEventDispatcher and NavigationEventCallback going forward. ( Ib8eed, I6cc44, Ib7724, I9a0f7, b/412597031, b/415028038, b/412596729, b/412597140, b/412596012)