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 |
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
onError
open fun onError(errorCode: Int): Unit
The service should call this method when an error occurred and can't satisfy the support request.
onSupportResult
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 . |