Added in API level 33

Builder


class Builder
kotlin.Any
   ↳ android.speech.RecognitionSupport.Builder

A builder for RecognitionSupport

Summary

Public constructors

Public methods
RecognitionSupport.Builder

RecognitionSupport.Builder

RecognitionSupport.Builder

RecognitionSupport.Builder

RecognitionSupport

Builds the instance.

RecognitionSupport.Builder

Support for this request is ready for use on this device for the returned languages.

RecognitionSupport.Builder

Support for this request is available via a remote implementation.

RecognitionSupport.Builder

Support for this request is scheduled for download for the returned languages.

RecognitionSupport.Builder

These languages are supported but need to be downloaded before use.

Public constructors

Builder

Added in API level 33
Builder()

Public methods

addInstalledOnDeviceLanguage

Added in API level 33
fun addInstalledOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters
value String: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

addOnlineLanguage

Added in API level 33
fun addOnlineLanguage(value: String): RecognitionSupport.Builder
Parameters
value String: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

addPendingOnDeviceLanguage

Added in API level 33
fun addPendingOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters
value String: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

addSupportedOnDeviceLanguage

Added in API level 33
fun addSupportedOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters
value String: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

build

Added in API level 33
fun build(): RecognitionSupport

Builds the instance. This builder should not be touched after calling this!

Return
RecognitionSupport This value cannot be null.

setInstalledOnDeviceLanguages

Added in API level 33
fun setInstalledOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder

Support for this request is ready for use on this device for the returned languages.

Parameters
value MutableList<String!>: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

setOnlineLanguages

Added in API level 33
fun setOnlineLanguages(value: MutableList<String!>): RecognitionSupport.Builder

Support for this request is available via a remote implementation. SpeechRecognizer created via SpeechRecognizer#createOnDeviceSpeechRecognizer(Context) are expected to return an empty list.

Parameters
value MutableList<String!>: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

setPendingOnDeviceLanguages

Added in API level 33
fun setPendingOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder

Support for this request is scheduled for download for the returned languages.

Parameters
value MutableList<String!>: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.

setSupportedOnDeviceLanguages

Added in API level 33
fun setSupportedOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder

These languages are supported but need to be downloaded before use. See android.speech.SpeechRecognizer#triggerModelDownload(android.content.Intent).

Parameters
value MutableList<String!>: This value cannot be null.
Return
RecognitionSupport.Builder This value cannot be null.