Added in API level 33

RecognitionSupportCallback


interface RecognitionSupportCallback
android.speech.RecognitionSupportCallback

Used for receiving notifications from the SpeechRecognizer about the device support status for the given recognition request.

Summary

Public methods
abstract Unit
onError(error: Int)

Notifies the caller about an error during the recognition support request

abstract Unit
onSupportResult(recognitionSupport: RecognitionSupport)

Notifies the caller about the support for the given request.

Public methods

onSupportResult

Added in API level 33
abstract fun onSupportResult(recognitionSupport: RecognitionSupport): Unit

Notifies the caller about the support for the given request.

Parameters
recognitionSupport RecognitionSupport: This value cannot be null.