Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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 default not-listening state orb color.

open Unit

Sets the sound level while listening to speech.

open Unit

Sets the view to display listening state.

open Unit

Sets the view to display the not-listening state.

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.

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.

showListening

open fun showListening(): Unit

Sets the view to display listening state.

showNotListening

open fun showNotListening(): Unit

Sets the view to display the not-listening state.