UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface RuntimeController<TSnapshot>

    Shared lifecycle implemented by every runtime controller.

    destroy() is idempotent. After destruction, commands are no-ops, subscriptions return an inert unsubscribe function, and getSnapshot() keeps returning the final snapshot.

    interface RuntimeController<TSnapshot> {
        destroy(): void;
        getSnapshot(): Readonly<TSnapshot>;
        subscribe(listener: SnapshotListener<TSnapshot>): Unsubscribe;
    }

    Type Parameters

    • TSnapshot

    Hierarchy (View Summary)

    Index

    Methods

    • Releases owned listeners, timers, observers, focus scopes, and subscriptions.

      Returns void