//workflow/com.squareup.workflow1.ui/WorkflowLayout/take
take
[androidJvm]
Content
fun take(lifecycle: Lifecycle, renderings: Flow, repeatOnLifecycle: Lifecycle.State = STARTED)
More info
This is the most common way to bootstrap a Workflow driven UI. Collects renderings and calls show with each one.
Parameters
androidJvm
|
|
lifecycle |
the lifecycle that defines when and how this view should be updated. Typically this comes from ComponentActivity.lifecycle or Fragment.lifecycle.
|
repeatOnLifecycle |
the lifecycle state in which renderings should be actively updated. Defaults to STARTED, which is appropriate for Activity and Fragment.
|