Class ShadowAccessibilityRecord


  • @Implements(android.view.accessibility.AccessibilityRecord.class)
    public class ShadowAccessibilityRecord
    extends java.lang.Object
    Shadow of AccessibilityRecord.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NO_VIRTUAL_ID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected android.view.accessibility.AccessibilityNodeInfo getSource()
      Returns the AccessibilityNodeInfo of the event source or null if there is none.
      android.view.View getSourceRoot()  
      int getVirtualDescendantId()  
      protected int getWindowId()
      Returns the id of the window from which the event comes.
      protected void setSource​(android.view.View root)  
      protected void setSource​(android.view.View root, int virtualDescendantId)  
      void setSourceNode​(android.view.accessibility.AccessibilityNodeInfo node)
      Sets the AccessibilityNodeInfo of the event source.
      void setWindowId​(int id)
      Sets the id of the window from which the event comes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowAccessibilityRecord

        public ShadowAccessibilityRecord()
    • Method Detail

      • setSource

        @Implementation
        protected void setSource​(android.view.View root,
                                 int virtualDescendantId)
      • setSource

        @Implementation
        protected void setSource​(android.view.View root)
      • setSourceNode

        public void setSourceNode​(android.view.accessibility.AccessibilityNodeInfo node)
        Sets the AccessibilityNodeInfo of the event source.
        Parameters:
        node - The node to set
      • getSource

        @Implementation
        protected android.view.accessibility.AccessibilityNodeInfo getSource()
        Returns the AccessibilityNodeInfo of the event source or null if there is none.
      • setWindowId

        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 android.view.View getSourceRoot()
      • getVirtualDescendantId

        public int getVirtualDescendantId()