//workflow/com.squareup.workflow1/StatelessWorkflow/RenderContext
RenderContext¶
[jvm] inner class RenderContext : BaseRenderContext<@UnsafeVariance()PropsT, Nothing, @UnsafeVariance()OutputT>
Functions¶
Name | Summary |
---|---|
eventHandler | [jvm] Content open override fun open override fun open override fun open override fun open override fun open override fun open override fun open override fun open override fun open override fun [jvm] Content open override fun eventHandler(name: () -> String, update: WorkflowAction.Updater<@UnsafeVariance()PropsT, Nothing, @UnsafeVariance()OutputT>.() -> Unit): () -> Unit More info Creates a function which builds a WorkflowAction from the given update function, and immediately passes it to actionSink. |
renderChild | [jvm] Content open override fun More info Ensures child is running as a child of this workflow, and returns the result of its render method. |
runningSideEffect | [jvm] Content open override fun runningSideEffect(key: String, sideEffect: suspend CoroutineScope.() -> Unit) More info Ensures sideEffect is running with the given key. |
Properties¶
Name | Summary |
---|---|
actionSink | [jvm] open override val actionSink: Sink<WorkflowAction<@UnsafeVariance()PropsT, Nothing, @UnsafeVariance()OutputT>>Accepts a single WorkflowAction, invokes that action by calling WorkflowAction.apply to update the current state, and optionally emits the returned output value if it is non-null. |