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 SummaryFields Modifier and Type Field Description static intNO_VIRTUAL_ID
- 
Constructor SummaryConstructors Constructor Description ShadowAccessibilityRecord()
- 
Method SummaryModifier and Type Method Description protected AccessibilityNodeInfogetSource()Returns theAccessibilityNodeInfoof the event source ornullif there is none.ViewgetSourceRoot()intgetVirtualDescendantId()protected intgetWindowId()Returns the id of the window from which the event comes.protected voidinit(AccessibilityRecord model)protected voidsetSource(View root)protected voidsetSource(View root, int virtualDescendantId)voidsetSourceNode(AccessibilityNodeInfo node)Sets theAccessibilityNodeInfoof the event source.voidsetWindowId(int id)Sets the id of the window from which the event comes.
- 
Field Details- 
NO_VIRTUAL_IDpublic static final int NO_VIRTUAL_ID- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
ShadowAccessibilityRecordpublic ShadowAccessibilityRecord()
 
- 
- 
Method Details- 
init
- 
setSource
- 
setSource
- 
setSourceNodeSets theAccessibilityNodeInfoof the event source.- Parameters:
- node- The node to set
 
- 
getSourceReturns theAccessibilityNodeInfoof the event source ornullif there is none.
- 
setWindowIdSets the id of the window from which the event comes.- Parameters:
- id- The id to set
 
- 
getWindowIdReturns the id of the window from which the event comes.
- 
getSourceRoot
- 
getVirtualDescendantIdpublic int getVirtualDescendantId()
 
-