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

ComposableInvoker

@ExperimentalComposeUiApi
public static class ComposableInvoker


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

Summary

Public fields

static @NonNull ComposableInvoker

Public methods

final void
@ExperimentalComposeUiApi
invokeComposable(
    @NonNull String className,
    @NonNull String methodName,
    @NonNull Composer composer,
    Object args
)

Invokes the given methodName belonging to the given className.

Public fields

INSTANCE

public static @NonNull ComposableInvoker INSTANCE

Public methods

invokeComposable

@ExperimentalComposeUiApi
public final void invokeComposable(
    @NonNull String className,
    @NonNull String methodName,
    @NonNull Composer composer,
    Object args
)

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.