WorkflowAndroidXSupport
Namespace for some helper functions for interacting with the AndroidX libraries.
Functions
Returns the LifecycleOwner managing context.
Tries to get the parent lifecycle from the current view via findViewTreeLifecycleOwner, if that fails it looks up the context chain for a LifecycleOwner, and if that fails it just returns null. This differs from findViewTreeLifecycleOwner because it will check the View.getContext if no owner is found in the view tree.
Looks for an OnBackPressedDispatcherOwner in the receiving ViewEnvironment. Failing that, falls through to View.onBackPressedDispatcherOwnerOrNull. Patterned after the heuristic in Compose's LocalOnBackPressedDispatcherOwner
.
Looks for a View's OnBackPressedDispatcherOwner via the usual findViewTreeOnBackPressedDispatcherOwner method, and if that fails checks its Context.
Tries to get the parent SavedStateRegistryOwner from the current view via findViewTreeSavedStateRegistryOwner, if that fails it looks up the context chain for a registry owner, and if that fails it just returns null. This differs from findViewTreeSavedStateRegistryOwner because it will check the View.getContext if no owner is found in the view tree.