public class SearchBar
extends RelativeLayout

   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ androidx.leanback.widget.SearchBar

A search widget containing a search orb and a text entry view.

Note: When SpeechRecognitionCallback is not used, i.e. using SpeechRecognizer, your application will need to declare android.permission.RECORD_AUDIO in manifest file. If your application target >= 23 and the device is running >= 23, it needs implement SearchBar.SearchBarPermissionListener where requests runtime permission.


Nested classes

interface SearchBar.SearchBarListener

Interface for receiving notification of search query changes. 

interface SearchBar.SearchBarPermissionListener

Interface that handles runtime permissions requests. 

Inherited constants