A2uiCoreComponentRegistry


interface A2uiCoreComponentRegistry : AutoCloseable


A registry for storing UI components. Host frameworks back this with native reactive states (e.g., SnapshotStateMap in Compose).

Summary

Public functions

Unit

Instantly clears all components from the registry for deterministic teardown.

Unit
reportError(id: String, exception: A2uiException)

Reports an error associated with a specific UI component.

Unit

Inserts or replaces UI components in the registry.

Public functions

close

Added in 1.0.0-alpha01
fun close(): Unit

Instantly clears all components from the registry for deterministic teardown.

reportError

Added in 1.0.0-alpha01
fun reportError(id: String, exception: A2uiException): Unit

Reports an error associated with a specific UI component.

Parameters
id: String

The unique identifier of the component that encountered the error.

exception: A2uiException

The exception describing the component error.

update

Added in 1.0.0-alpha01
fun update(components: List<A2uiComponentPayload>): Unit

Inserts or replaces UI components in the registry.

Parameters
components: List<A2uiComponentPayload>

The list of UI components to insert or update.