Skip to content

//workflow/com.squareup.workflow1.testing/RenderTester/RenderChildInvocation

RenderChildInvocation

[jvm] class RenderChildInvocation(workflow: Workflow<, *, *>, **props*: Any?, outputType: KTypeProjection, renderingType: KTypeProjection, renderKey: String)

Describes a call to RenderContext.renderChild.

Output and rendering types

The testing library will attempt to determine the output and rendering types by using reflection to determine the type arguments that the concrete workflow class passes to the Workflow interface. This is subject to the limitations of Kotlin’s reflection. Notably, there is a compiler bug (KT-17103) that prevents reflecting on these types when the workflow is an anonymous class that was created by an inline function with reified types, such as Workflow.stateful and Workflow.stateless.

Parameters

jvm

workflow

The child workflow that is being rendered.

props

The props value passed to renderChild.

outputType

The KType of the workflow’s OutputT.

renderingType

The KType of the workflow’s RenderingT.

renderKey

The string key passed to renderChild.

Constructors

RenderChildInvocation [jvm] fun RenderChildInvocation(workflow: Workflow<*, *, *>, props: Any?, outputType: KTypeProjection, renderingType: KTypeProjection, renderKey: String)The child workflow that is being rendered.

Properties

Name Summary
outputType [jvm] val outputType: KTypeProjectionThe KType of the workflow’s OutputT.
props [jvm] val props: Any?The props value passed to renderChild.
renderingType [jvm] val renderingType: KTypeProjectionThe KType of the workflow’s RenderingT.
renderKey [jvm] val renderKey: StringThe string key passed to renderChild.
workflow [jvm] val workflow: Workflow<*, *, *>The child workflow that is being rendered.