SpeechOrbView

open class SpeechOrbView : SearchOrbView
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ androidx.leanback.widget.SearchOrbView
   ↳ androidx.leanback.widget.SpeechOrbView

A subclass of SearchOrbView that visualizes the state of an ongoing speech recognition.

Summary

Public constructors
<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyle: Int)

Public methods
open Unit

Sets default listening state orb color.

open Unit

Sets the view to display the not-listening state.

open Unit

Sets the view to display listening state.

open Unit

Sets default not-listening state orb color.

open Unit

Sets the sound level while listening to speech.

Inherited functions

Public constructors

<init>

SpeechOrbView(context: Context!)

<init>

SpeechOrbView(context: Context!, attrs: AttributeSet!)

<init>

SpeechOrbView(context: Context!, attrs: AttributeSet!, defStyle: Int)

Public methods

setListeningOrbColors

open fun setListeningOrbColors(colors: SearchOrbView.Colors!): Unit

Sets default listening state orb color.

Parameters
colors SearchOrbView.Colors!: SearchOrbView.Colors.

showNotListening

open fun showNotListening(): Unit

Sets the view to display the not-listening state.

showListening

open fun showListening(): Unit

Sets the view to display listening state.

setNotListeningOrbColors

open fun setNotListeningOrbColors(colors: SearchOrbView.Colors!): Unit

Sets default not-listening state orb color.

Parameters
colors SearchOrbView.Colors!: SearchOrbView.Colors.

setSoundLevel

open fun setSoundLevel(level: Int): Unit

Sets the sound level while listening to speech.