NativeSceneReader class

Reads native surface content via glint-iossim ax-snapshot. Returns a parsed scene when the Simulator exposes an AX tree (needs macOS a11y permission), else a sentinel scene flagging an unreadable native surface.

Inheritance

Constructors

NativeSceneReader({required String udid, required String bridgePath})

Properties

bridgePath → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
udid → String
final

Methods

foreignSurface() → Future<String?>
The window in front of the app when it belongs to someone else (a system picker, another app); null when the app is in front or this platform cannot tell.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readSnapshot() → Future<Scene>
Read the native surface. Always returns a non-null Scene; uses a sentinel scene when the AX tree is unavailable.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

renderAsText(Scene scene) → String
Compact text representation of the native scene for agent consumption. Enabled elements are marked *, disabled elements are marked -.