Skip to content

Release 2.4.0

Compare
Choose a tag to compare
@isaac-udy isaac-udy released this 01 May 08:49
  • Updated dependency versions
  • Added instruction property directly to NavigationContext, to provide easy access to the instruction
  • Added extensions getViewModel and requireViewModel to NavigationContext to access ViewModels directly from a context reference
  • Added extensions for findContext and findActiveContext to NavigationContext to allow for finding other NavigationContexts from a context reference * Updated NavigationContainer to add getChildContext which allows finding specific Active/ActivePushed/ActivePresented/Specific contexts from a container reference
  • Added instruction property to NavigationContext, and marked NavigationContext as @AdvancedEnroApi
  • Updated NavigationContext and NavigationHandle to bind each other to allow for easier access to the other from either reference, and to ensure the lazy references are still available while the context is being referenced
  • Updated result handling for forwarding results to fix several bugs and improve behaviour (including correctly handling forwarded results through Activities)
  • Added transient configuration to NavigationFlow steps, which allows a step to only be re-executed if it's dependencies have changed
  • Added navigationFlowReference as a parcealble object which can be passed to NavigationKeys, and then later used to retrieve the parent navigation flow
  • Prevent more than one registerForNavigationResult from occurring within the context of a single NavigationHandle
  • Remove next from the public API of NavigationFlow, in favour of doing this automatically on creation of the flow
  • Added a new version of OverrideNavigationAnimations, which provides a way to override animations and receive an AnimatedVisibilityScope which is useful for shared element transitions.