androidx.a2ui.model.processor


Interfaces

A2uiActionInterceptor

Intercepts, transforms, or drops A2uiUserActions before they are processed by the core layer.

A2uiJsonReader

Reads a stream of JSON tokens.

A2uiMessageParser

Parses raw input into A2uiServerToClientMessage protocol messages.

A2uiMessageProcessor

The A2UI message processor.

A2uiSurfaceModel

A single A2UI surface.

Classes

A2uiJsonMessageParser

Parses JSON strings into A2uiServerToClientMessage protocol messages.

Enums

A2uiJsonToken

Identifies the type of the next JSON token.

Extension functions summary

Unit
<T : Any?> A2uiMessageProcessor.processInput(
    parser: A2uiMessageParser<T>,
    input: T
)

Parses input using parser and enqueues the resulting message into this processor.

Extension functions

A2uiMessageProcessor.processInput

fun <T : Any?> A2uiMessageProcessor.processInput(
    parser: A2uiMessageParser<T>,
    input: T
): Unit

Parses input using parser and enqueues the resulting message into this processor.

If parsing fails with an A2uiException (such as A2uiException.A2uiValidationException), the exception is caught, converted into an A2uiClientErrorMessage, and sent to processError. Unexpected runtime exceptions are not caught.

Parameters
parser: A2uiMessageParser<T>

The parser to use for parsing the input.

input: T

The raw input to parse and process.