AppAgent class
glint's helper inside the app, installed once per isolate by one eval: input, settle and lifecycle each become one service-extension call with nothing to compile.
Properties
- clockOffsetMs → int?
-
The app's clock minus glint's in milliseconds, or null before the first install reply.
no setter
-
errors
→ Stream<
Map< String, Object?> > -
Errors the app raised, as posted by the agent's chained error handlers.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lifecycle
→ Stream<
String> -
Lifecycle states the agent posts, as the app sees them (
resumed,inactive, ...).no setter - ownTouchesOnly ↔ bool
-
Whether the overlay draws only the touches glint itself sends through the app, because the device already draws every real touch.
getter/setter pair
- runtime → VmServiceRuntime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTouches ↔ bool
-
Whether the app draws each touch; put back whenever the agent installs into a fresh isolate (attach, hot restart).
getter/setter pair
Methods
-
call(
Map< String, String> args, {Duration? timeout, bool dropLate = false}) → Future<Map< String, Object?> > -
Calls the agent with
args, installing it first in a fresh isolate (after attach or a hot restart); withdropLatethe app skips the call if it only runs aftertimeout, so input glint gave up on never lands later. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setTouches(
bool on, {bool ownOnly = false}) → Future< Map< String, Object?> > -
Turns the touch overlay on or off:
{on}, plusreason(notDebug) when it could not be drawn. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
FlutterRuntime runtime) → AppAgent? -
The agent for
runtime; null for runtimes that cannot call service extensions.