AndroidX Activity 1.14.0-alpha01

1.14.0-alpha01
Added 3
  • Developers of exported activities can override defaultViewModelArgs to explicitly provide validated intent extras
  • Activity provides NavigationEventDispatcherOwner and OnBackPressedDispatcherOwner factory functions for creating instances of the respective components
  • OnBackPressedDispatcher provides an asNavigationEventDispatcher extension to convert it to a NavigationEventDispatcher
Changed 1

1 change to check, marked in the notes below

From AndroidX Activity

Intent extras are no longer automatically added to defaultViewModelCreationExtras for exported activities. Developers of exported activities can override defaultViewModelArgs to explicitly provide validated intent extras. ( Id0cb6, b/213646066) Activity now provides NavigationEventDispatcherOwner and OnBackPressedDispatcherOwner factory functions for creating the instances of the respective components easily. ( I1d259, Iadd5c) OnBackPressedDispatcher now provides an asNavigationEventDispatcher extension to easily covert it to a NavigationEventDispatcher. ( Id11cf) behavior changed · inferred

View original

Upgraded? How did it go?

Discussion