-
public final class CompoundComponentFactoryKt
-
-
Method Summary
Modifier and Type Method Description final static UnitCompoundComponentFactory(Object keys, Function1<ChatComponentFactory, ChatComponentFactory> factory, Function0<Unit> content)A composable that allows you to create a compound ChatComponentFactory by providing a factory function that takes the current ChatComponentFactory as an argument. -
-
Method Detail
-
CompoundComponentFactory
@Composable() final static Unit CompoundComponentFactory(Object keys, Function1<ChatComponentFactory, ChatComponentFactory> factory, Function0<Unit> content)
A composable that allows you to create a compound ChatComponentFactory by providing a factory function that takes the current ChatComponentFactory as an argument.
This is useful for creating custom components or modifying existing ones without directly altering the original factory.
- Parameters:
keys- Optional keys to control recomposition.factory- A function that takes the current ChatComponentFactory and returns a new ChatComponentFactory.content- The composable content that will use the compound ChatComponentFactory.
-
-
-
-