@Implements(android.view.accessibility.AccessibilityRecord.class) public class ShadowAccessibilityRecord extends Object
AccessibilityRecord
.Modifier and Type | Field | Description |
---|---|---|
static int |
NO_VIRTUAL_ID |
Constructor | Description |
---|---|
ShadowAccessibilityRecord() |
Modifier and Type | Method | Description |
---|---|---|
protected AccessibilityNodeInfo |
getSource() |
Returns the
AccessibilityNodeInfo of the event source or null if there is none. |
View |
getSourceRoot() |
|
int |
getVirtualDescendantId() |
|
protected int |
getWindowId() |
Returns the id of the window from which the event comes.
|
protected void |
setSource(View root) |
|
protected void |
setSource(View root,
int virtualDescendantId) |
|
void |
setSourceNode(AccessibilityNodeInfo node) |
Sets the
AccessibilityNodeInfo of the event source. |
void |
setWindowId(int id) |
Sets the id of the window from which the event comes.
|
public static final int NO_VIRTUAL_ID
@Implementation protected void setSource(View root, int virtualDescendantId)
@Implementation protected void setSource(View root)
public void setSourceNode(AccessibilityNodeInfo node)
AccessibilityNodeInfo
of the event source.node
- The node to set@Implementation protected AccessibilityNodeInfo getSource()
AccessibilityNodeInfo
of the event source or null
if there is none.public void setWindowId(int id)
id
- The id to set@Implementation protected int getWindowId()
public View getSourceRoot()
public int getVirtualDescendantId()