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 ofAccessibilityRecord
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_VIRTUAL_ID
-
Constructor Summary
Constructors Constructor Description ShadowAccessibilityRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccessibilityNodeInfo
getSource()
Returns theAccessibilityNodeInfo
of the event source ornull
if there is none.View
getSourceRoot()
int
getVirtualDescendantId()
protected int
getWindowId()
Returns the id of the window from which the event comes.protected void
init(AccessibilityRecord model)
protected void
setSource(View root)
protected void
setSource(View root, int virtualDescendantId)
void
setSourceNode(AccessibilityNodeInfo node)
Sets theAccessibilityNodeInfo
of the event source.void
setWindowId(int id)
Sets the id of the window from which the event comes.
-
-
-
Field Detail
-
NO_VIRTUAL_ID
public static final int NO_VIRTUAL_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@Implementation protected void init(AccessibilityRecord model)
-
setSource
@Implementation protected void setSource(View root, int virtualDescendantId)
-
setSource
@Implementation protected void setSource(View root)
-
setSourceNode
public void setSourceNode(AccessibilityNodeInfo node)
Sets theAccessibilityNodeInfo
of the event source.- Parameters:
node
- The node to set
-
getSource
@Implementation protected AccessibilityNodeInfo getSource()
Returns theAccessibilityNodeInfo
of the event source ornull
if there is none.
-
setWindowId
@Implementation(minSdk=17) public void setWindowId(int id)
Sets the id of the window from which the event comes.- Parameters:
id
- The id to set
-
getWindowId
@Implementation protected int getWindowId()
Returns the id of the window from which the event comes.
-
getSourceRoot
public View getSourceRoot()
-
getVirtualDescendantId
public int getVirtualDescendantId()
-
-