RecyclerViewAccessibilityDelegate 
This package is part of the
Android support library  which
is no longer maintained.
The support library has been superseded by AndroidX 
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating  existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings . 
 
  public
  
  
  
  class
  RecyclerViewAccessibilityDelegate
  
  
  
  
    extends AccessibilityDelegateCompat 
  
  
  
  
  
  
  
    
The AccessibilityDelegate used by RecyclerView.
 
 This class handles basic accessibility actions and delegates them to LayoutManager.
Summary 
Nested classes 
      
        
        
        
        
        class
        RecyclerViewAccessibilityDelegate.ItemDelegate The default implementation of accessibility delegate for the individual items of the
 RecyclerView. 
        
    
       
     
    
    
Inherited methods 
  
     From
class
  
    android.support.v4.view.AccessibilityDelegateCompat 
  
  
  
  
    
      
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      dispatchPopulateAccessibilityEvent (View  host, AccessibilityEvent  event)
      
      
        Dispatches an AccessibilityEvent View 
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        AccessibilityNodeProviderCompat 
    
      
      getAccessibilityNodeProvider (View  host)
      
      
        Gets the provider for managing a virtual view hierarchy rooted at this View
 and reported to AccessibilityService 
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      onInitializeAccessibilityEvent (View  host, AccessibilityEvent  event)
      
      
        Initializes an AccessibilityEvent 
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      onInitializeAccessibilityNodeInfo (View  host, AccessibilityNodeInfoCompat  info)
      
      
        Initializes an AccessibilityNodeInfoCompat 
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      onPopulateAccessibilityEvent (View  host, AccessibilityEvent  event)
      
      
        Gives a chance to the host View to populate the accessibility event with its
 text content.
        
    
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      onRequestSendAccessibilityEvent (ViewGroup  host, View  child, AccessibilityEvent  event)
      
      
        Called when a child of the host View has requested sending an
 AccessibilityEvent 
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      performAccessibilityAction (View  host, int action, Bundle  args)
      
      
        Performs the specified accessibility action on the view.
        
    
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      sendAccessibilityEvent (View  host, int eventType)
      
      
        Sends an accessibility event of the given type.
        
    
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      sendAccessibilityEventUnchecked (View  host, AccessibilityEvent  event)
      
      
        Sends an accessibility event.
        
    
      
     
   
  
    
   
 
  
  
     From
class
  
    java.lang.Object
  
  
  
  
    
      
  
  
  
  
    
        
        
        
        
        
        Object
    
      
      clone()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      equals(Object arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      finalize()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        Class<?>
    
      
      getClass()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        int
    
      
      hashCode()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notify()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notifyAll()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        String
    
      
      toString()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0, int arg1)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait()
      
      
     
   
  
    
   
 
  
Public constructors 
    RecyclerViewAccessibilityDelegate 
    
RecyclerViewAccessibilityDelegate (RecyclerView  recyclerView) 
    
    Parameters 
        recyclerView
          RecyclerView  
       
    
 
Public methods 
    getItemDelegate 
    
AccessibilityDelegateCompat  getItemDelegate () Gets the AccessibilityDelegate for an individual item in the RecyclerView.
 A basic item delegate is provided by default, but you can override this
 method to provide a custom per-item delegate.
    
 
    
    
boolean performAccessibilityAction (View  host, 
                int action, 
                Bundle  args) Performs the specified accessibility action on the view. For
 possible accessibility actions look at AccessibilityNodeInfoCompat 
 The default implementation behaves as
 View#performAccessibilityAction(int, Bundle) 
    
    Parameters 
        host
          View  
       
      
        action
          int: The action to perform. 
       
      
        args
          Bundle  
       
    
    
      Returns 
        booleanWhether the action was performed. 
       
    
 
  
  
    
    Annotations 
      
    Interfaces 
      
    Classes 
      
     
  
 
  
  
    
       
    
    
      
    
     
  
       
    
    
      
  Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]