A2uiMessageParser


fun interface A2uiMessageParser<T : Any?>

Known direct subclasses
A2uiJsonMessageParser

Parses JSON strings into A2uiServerToClientMessage protocol messages.


Parses raw input into A2uiServerToClientMessage protocol messages.

Parameters
<T : Any?>

the type of input to parse

Summary

Public functions

A2uiServerToClientMessage
parse(input: T)

Parses the input into an A2uiServerToClientMessage.

Public functions

parse

Added in 1.0.0-alpha01
fun parse(input: T): A2uiServerToClientMessage

Parses the input into an A2uiServerToClientMessage.

Throws
androidx.a2ui.model.protocol.A2uiException.A2uiValidationException

if the input is malformed or invalid