A2uiCoreComponentRegistry


public interface A2uiCoreComponentRegistry extends AutoCloseable


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

Summary

Public methods

abstract void

Instantly clears all components from the registry for deterministic teardown.

abstract void

Reports an error associated with a specific UI component.

abstract void

Inserts or replaces UI components in the registry.

Public methods

close

Added in 1.0.0-alpha01
abstract void close()

Instantly clears all components from the registry for deterministic teardown.

reportError

Added in 1.0.0-alpha01
abstract void reportError(@NonNull String id, @NonNull A2uiException exception)

Reports an error associated with a specific UI component.

Parameters
@NonNull String id

The unique identifier of the component that encountered the error.

@NonNull A2uiException exception

The exception describing the component error.

update

Added in 1.0.0-alpha01
abstract void update(@NonNull List<@NonNull A2uiComponentPayload> components)

Inserts or replaces UI components in the registry.

Parameters
@NonNull List<@NonNull A2uiComponentPayload> components

The list of UI components to insert or update.