@Implements(value=android.view.accessibility.AccessibilityRecord.class) public class ShadowAccessibilityRecord extends 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 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)
Sets the AccessibilityNodeInfo
of the event source.
node
- The node to set@Implementation protected 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 View getSourceRoot()
public int getVirtualDescendantId()