Package org.robolectric.shadows
Class ShadowAccessibilityRecord
java.lang.Object
org.robolectric.shadows.ShadowAccessibilityRecord
@Implements(android.view.accessibility.AccessibilityRecord.class)
public class ShadowAccessibilityRecord
extends Object
Shadow of
AccessibilityRecord
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AccessibilityNodeInfo
Returns theAccessibilityNodeInfo
of the event source ornull
if there is none.int
protected int
Returns the id of the window from which the event comes.protected void
init
(AccessibilityRecord model) protected void
protected void
void
Sets theAccessibilityNodeInfo
of the event source.void
setWindowId
(int id) Sets the id of the window from which the event comes.
-
Field Details
-
NO_VIRTUAL_ID
public static final int NO_VIRTUAL_ID- See Also:
-
-
Constructor Details
-
ShadowAccessibilityRecord
public ShadowAccessibilityRecord()
-
-
Method Details
-
init
-
setSource
-
setSource
-
setSourceNode
Sets theAccessibilityNodeInfo
of the event source.- Parameters:
node
- The node to set
-
getSource
Returns theAccessibilityNodeInfo
of the event source ornull
if there is none. -
setWindowId
Sets the id of the window from which the event comes.- Parameters:
id
- The id to set
-
getWindowId
Returns the id of the window from which the event comes. -
getSourceRoot
-
getVirtualDescendantId
public int getVirtualDescendantId()
-