Skip to content

//workflow/com.squareup.workflow1.ui/canShowRendering

canShowRendering

[androidJvm]
Content
@WorkflowUiExperimentalApi()

fun View.canShowRendering(rendering: Any): Boolean
More info

This will be deprecated in favor of ScreenViewHolder.canShow very soon.

Note that WorkflowViewStub.showRendering makes this check for you.

True if this view is able to show rendering.

Returns false if View.bindShowRendering has not been called, so it is always safe to call this method. Otherwise returns the compatible of the current View.getRendering and the new one.