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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AccessibilityNodeInfoReturns theAccessibilityNodeInfoof the event source ornullif there is none.intprotected voidinit(AccessibilityRecord model) protected voidprotected voidvoidSets theAccessibilityNodeInfoof the event source.voidsetWindowId(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 theAccessibilityNodeInfoof the event source.- Parameters:
node- The node to set
-
getSource
Returns theAccessibilityNodeInfoof the event source ornullif there is none. -
setWindowId
Sets the id of the window from which the event comes.- Parameters:
id- The id to set
-
getSourceRoot
-
getVirtualDescendantId
public int getVirtualDescendantId()
-