A2UICatalog
How each component type of a surface looks, by type, such as Text.
Basic draws every component of the A2UI 1.0 basic catalog. Start from it to draw a type your own way; the agent still writes the type as the catalog describes it:
val catalog = A2UICatalog.Basic.with("Card") { scope ->
BrandCard(modifier = scope.modifier) { scope.child()?.let { scope.Child(it) } }
}Content copied to clipboard
To keep the agent from using a type, remove it with removing. The agent is told about the basic catalog's types the catalog draws, and a type the catalog has no renderer for shows nothing.
Parameters
renderers
The renderer of each type.
Functions
Link copied to clipboard
The renderer of type, or null when the catalog has none.
Link copied to clipboard
A catalog with the renderers of both; the ones of other win.
Link copied to clipboard
A copy without types, such as Video. The agent isn't told about a removed type of the basic catalog, and a reply that still uses one shows nothing for it, as for a type no catalog has.
Link copied to clipboard