RunnerNativeReader class
iOS native UI read through glint's XCUITest runner: system alerts, and surfaces the app presents in-process (photo picker, edit menu) that leave the Flutter lifecycle resumed.
- Inheritance
-
- Object
- NativeReader
- RunnerNativeReader
Constructors
Properties
- appBackgrounded → bool
-
Whether the last read found the app itself in the background or suspended (home screen, another app in front).
no setter
- bundleId → String? Function()
-
final
- fallback → NativeReader?
-
Used when the runner finds nothing over the app, e.g. while it is backgrounded.
final
-
frontmost
→ Future<
String?> Function()? -
Device mode: names the app in front when bundleId is null; its presence makes the reader return the whole app, not only what covers it.
final
-
frontWhenHidden
→ Future<
String?> Function()? -
Flutter mode: names the app in front when bundleId's app is not (home screen, another app), so its screen can be read and tapped.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastFrontName ↔ String?
-
The screen in front of the app while the app itself is in the background (e.g.
the home screen), from the last scene read.getter/setter pair - lastReadProblem ↔ String?
-
What the last read of the runner got wrong, or null when it worked.
getter/setter pair
- lastSurfaceName ↔ String?
-
The name of the surface the last read found, or null when it found none.
getter/setter pair
- pixelsPerPoint → double
-
Device mode: screenshot pixels per point, so frames come out in the pixels device-mode taps take.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tree
→ Future<
Map< Function(String? bundleId)String, Object?> > -
The runner's
/treereply for bundleId; throws when the runner does not answer.final
Methods
-
foreignSurface(
) → Future< String?> -
Reads system alerts first: that read never waits on the app, so an alert that blocks the app ("Allow Paste") is still seen; the app's own tree is read only when there is none.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFresh(
) → Future< Scene> - Reads the runner again before answering, for callers that must not act on a surface from an earlier moment.
-
readSnapshot(
) → Future< Scene> -
The native surface as a scene; a sentinel scene when it cannot be read.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited