//workflow/com.squareup.workflow1.ui.androidx/WorkflowAndroidXSupport/stateRegistryOwnerFromViewTreeOrContext
stateRegistryOwnerFromViewTreeOrContext¶
[androidJvm]
Content
@WorkflowUiExperimentalApi()
fun stateRegistryOwnerFromViewTreeOrContext(view: View): SavedStateRegistryOwner?
More info
Tries to get the parent SavedStateRegistryOwner from the current view via ViewTreeSavedStateRegistryOwner, if that fails it looks up the context chain for a registry owner, and if that fails it just returns null. This differs from ViewTreeSavedStateRegistryOwner.get because it will check the View.getContext if no owner is found in the view tree.