{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ComposableInvoker

@ExperimentalComposeUiApi
object ComposableInvoker


A utility object to invoke composable function by its name and containing class.

Summary

Public functions

Unit
@ExperimentalComposeUiApi
invokeComposable(
    className: String,
    methodName: String,
    composer: Composer,
    vararg args: Any?
)

Invokes the given methodName belonging to the given className.

Public functions

invokeComposable

@ExperimentalComposeUiApi
fun invokeComposable(
    className: String,
    methodName: String,
    composer: Composer,
    vararg args: Any?
): Unit

Invokes the given methodName belonging to the given className. The methodName is expected to be a Composable function. This method args will be forwarded to the Composable function.