PatchbayInspectBridge class final
Turns the on-device widget inspector's select mode on, off, or reports it.
The mode is App state, not an observation: while it is on, taps are consumed by the inspector instead of the App, so a session that dies with the switch left on leaves the device unusable. Every enable therefore carries a lease; when the lease runs out without a renewal the bridge puts the flag back the way it found it. The App cannot observe a disconnect on either transport — both are request/response — so "restore on disconnect" is expressed as "restore on silence", which is the only version of it the App can prove.
Nothing here claims uiObserved. Writing the flag schedules a rebuild; it
is not proof that a frame carrying the overlay reached the screen, so every
answer is appRecorded — the App's own record of what it set.
Constructors
- PatchbayInspectBridge({required PatchbayGateEvaluator gates, PatchbayInspectPolicy policy = const PatchbayInspectPolicy(), PatchbayInspectorSurface? surface})
Properties
-
gateIds
→ Set<
String> -
Gate IDs the catalog descriptor declares for
ui.inspect.select.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- managed → bool
-
Whether Patchbay currently owns the flag and holds a live lease.
no setter
- policy → PatchbayInspectPolicy
-
The opt-in the consumer supplied; the catalog descriptor is derived from
it, so the declared gates and the declared
ttlMsdefault are the ones this bridge actually enforces.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Drops the lease and puts the flag back, for a host that is shutting down.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
{required PatchbayInspectSelectRequestWire request, required String requestId}) → Future< PatchbayInvocation> -
status(
{required String requestId}) → Future< PatchbayInvocation> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited