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