Added in API level 33

SupportCallback


open class SupportCallback
kotlin.Any
   ↳ android.speech.RecognitionService.SupportCallback

This class receives callbacks from the speech recognition service and forwards them to the user. An instance of this class is passed to the RecognitionService#onCheckRecognitionSupport(Intent, SupportCallback) method. Recognizers may call these methods on any thread.

Summary

Public methods
open Unit
onError(errorCode: Int)

The service should call this method when an error occurred and can't satisfy the support request.

open Unit
onSupportResult(recognitionSupport: RecognitionSupport)

The service should call this method to notify the caller about the level of support.

Public methods

onSupportResult

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

The service should call this method to notify the caller about the level of support.

Parameters
recognitionSupport RecognitionSupport: This value cannot be null.