Skip to content

//workflow/com.squareup.workflow1.ui.androidx/WorkflowLifecycleOwner/Companion

Companion

[androidJvm] object Companion

Functions

Name Summary
get [androidJvm]
Content
fun get(view: View): WorkflowLifecycleOwner?
More info
Looks for the nearest ViewTreeLifecycleOwner on view and returns it if it’s an instance of WorkflowLifecycleOwner.


installOn [androidJvm]
Content
fun installOn(view: View, findParentLifecycle: (View) -> Lifecycle? = { v -> findParentViewTreeLifecycle(v) })
More info
Creates a new WorkflowLifecycleOwner and sets it on view‘s tags so it can be later retrieved with get.