Values¶
The small values calls return or take: an element's snapshot and bounds, an app's process,
a permission prompt, a toast, a notification, the foreground activity, and Long for intent
extras.
ElementSnapshot
¶
The state of one node at one instant (Element.snapshot()). Text properties are None
when the node has none. text is the raw accessibility text: on API 26+ an empty field
reports its hint there and showing_hint is True.
actions
¶
actions: tuple[StandardAction, ...]
The standard actions the node offers (Element.perform_action).
custom_actions
¶
custom_actions: tuple[str, ...]
The labels of the custom actions the node offers (Element.perform_custom_action).
Bounds
¶
Range
¶
RangeType
¶
AppProcess
¶
PermissionPrompt
¶
A runtime-permission dialog on screen (Device.await_permission_prompt): the package
of its window (what in_package scopes its other elements with), the choices it offers,
in PermissionChoice order, and the location accuracies it lets the user pick (empty
unless it asks for precise location).
Toast
¶
Notification
¶
An active notification (Device.notifications, Device.await_notification): the
package that posted it, its title and text (the android.title / android.text extras,
None when it has none), the titles of its action buttons (what
Device.open_notification's action names), whether a swipe dismisses it (False for
an ongoing one, such as a foreground service's), and when it was posted (UTC).