AndroidNativeReader class
Android native surfaces: the window manager says whose window has focus, and uiautomator dump reads it.
- Inheritance
-
- Object
- NativeReader
- AndroidNativeReader
Constructors
Properties
- adbPath → String
-
final
- appPackage ↔ String?
-
Package that owns the app's window, learned while the app is in front.
getter/setter pair
- devicePixelRatio → double Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastFocusUnknown ↔ bool
-
Whether the last foreignSurface could not learn which window has focus, so a null answer meant unknown rather than the app.
getter/setter pair
- lastReadProblem ↔ String?
-
Why the last readSnapshot could not read the surface, for the reply.
getter/setter pair
-
run
→ Future<
ProcessResult> Function(String, List<String> ) -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial → String
-
final
-
serverCall
↔ Future<
Map< Function(Map<String, Object?> ?>String, Object?> request)? -
Asks glint's resident server; null when there is none or it failed, and then dumpsys and uiautomator answer instead.
getter/setter pair
Methods
-
focusedComponent(
) → Future< String?> -
package/activityof the focused window, or null when adb cannot say. -
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.
override
-
learnAppPackage(
) → Future< void> -
Records the focused package as the app's own; call only while Flutter reports
resumed, when its activity has focus. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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