MobileAutomationBackend class abstract interface

Observe-and-act backend: the god tier only (AccessibilityService + MediaProjection). Every call probes the service first (E2) and raises MobileAutomationException.offline when it is gone.

Properties

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

Methods

dumpHierarchy() → Future<String>
Dumps the raw accessibility hierarchy XML (uiautomator shape).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
screenshot() → Future<MobileScreenshot>
Captures the screen as PNG (MediaProjection).
swipe({required int fromX, required int fromY, required int toX, required int toY, int durationMs}) → Future<void>
Dispatches a swipe gesture.
tap(MobileTapTarget target) → Future<void>
Dispatches a tap at target (element center or raw point).
text({String? elementId, required String text, bool clear}) → Future<void>
Enters text into the element with elementId (or the focused node). When clear is set the previous value is replaced.
toString() → String
A string representation of this object.
inherited

Operators

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