ElementSnapshot
data class ElementSnapshot(val className: String?, val packageName: String?, val resourceName: String?, val text: String?, val contentDescription: String?, val hint: String?, val bounds: Bounds, val checkable: Boolean, val checked: Boolean, val clickable: Boolean, val enabled: Boolean, val focusable: Boolean, val focused: Boolean, val longClickable: Boolean, val scrollable: Boolean, val selected: Boolean, val childCount: Int, val showingHint: Boolean, val actions: List<StandardAction> = emptyList(), val customActions: List<String> = emptyList(), val range: Range? = null)(source)
The state of one node at one instant (Element.snapshot). Text properties are null when the node has none. text is the raw accessibility text: on API 26+ an empty field reports its hint there and showingHint is true.
Constructors
Link copied to clipboard
constructor(className: String?, packageName: String?, resourceName: String?, text: String?, contentDescription: String?, hint: String?, bounds: Bounds, checkable: Boolean, checked: Boolean, clickable: Boolean, enabled: Boolean, focusable: Boolean, focused: Boolean, longClickable: Boolean, scrollable: Boolean, selected: Boolean, childCount: Int, showingHint: Boolean, actions: List<StandardAction> = emptyList(), customActions: List<String> = emptyList(), range: Range? = null)
Properties
Link copied to clipboard
The standard actions the node offers (Element.performAction).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The labels of the custom actions the node offers (Element.performCustomAction).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The node's range, when it is a range node (Element.setProgress).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard