Builder
class Builder
kotlin.Any | |
↳ | android.speech.RecognitionSupport.Builder |
A builder for RecognitionSupport
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
RecognitionSupport.Builder |
addInstalledOnDeviceLanguage(value: String) |
RecognitionSupport.Builder |
addOnlineLanguage(value: String) |
RecognitionSupport.Builder |
addPendingOnDeviceLanguage(value: String) |
RecognitionSupport.Builder |
addSupportedOnDeviceLanguage(value: String) |
RecognitionSupport |
build() Builds the instance. |
RecognitionSupport.Builder |
setInstalledOnDeviceLanguages(value: MutableList<String!>) Support for this request is ready for use on this device for the returned languages. |
RecognitionSupport.Builder |
setOnlineLanguages(value: MutableList<String!>) Support for this request is available via a remote implementation. |
RecognitionSupport.Builder |
setPendingOnDeviceLanguages(value: MutableList<String!>) Support for this request is scheduled for download for the returned languages. |
RecognitionSupport.Builder |
setSupportedOnDeviceLanguages(value: MutableList<String!>) These languages are supported but need to be downloaded before use. |
Public constructors
Public methods
addInstalledOnDeviceLanguage
fun addInstalledOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters | |
---|---|
value |
String: This value cannot be null . |
Return | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See Also
addOnlineLanguage
fun addOnlineLanguage(value: String): RecognitionSupport.Builder
Parameters | |
---|---|
value |
String: This value cannot be null . |
Return | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See Also
addPendingOnDeviceLanguage
fun addPendingOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters | |
---|---|
value |
String: This value cannot be null . |
Return | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See Also
addSupportedOnDeviceLanguage
fun addSupportedOnDeviceLanguage(value: String): RecognitionSupport.Builder
Parameters | |
---|---|
value |
String: This value cannot be null . |
Return | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See Also
build
fun build(): RecognitionSupport
Builds the instance. This builder should not be touched after calling this!
Return | |
---|---|
RecognitionSupport |
This value cannot be null . |
setInstalledOnDeviceLanguages
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
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
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
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 . |