UiRuntimeRegistry class
Registry of installed UI runtimes keyed by id, with a secondary prefix index for target-based routing. Hosts register runtimes at boot or when a bundle that contributes one is activated.
Constructors
Properties
Methods
-
byId(
String id) → UiRuntimePort? -
byTarget(
String target) → UiRuntimePort? -
Return the runtime whose
supportedPrefixescontains a prefix oftarget. Iterates in insertion order for deterministic results. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
UiRuntimePort port) → void -
Register
port. Throws if the id is already taken or a prefix collides with another registered runtime. -
resolveOrThrow(
String target) → UiRuntimePort - Same as byTarget but throws UnknownUiRuntime on miss.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String id) → void - Idempotent remove — unknown ids are ignored. Disposes the runtime.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited