RecognitionSupport.Builder

public static final class RecognitionSupport.Builder
extends Object

java.lang.Object
   ↳ android.speech.RecognitionSupport.Builder


A builder for RecognitionSupport

Summary

Public constructors

Builder()

Public methods

RecognitionSupport.Builder addInstalledLanguage(String value)
RecognitionSupport.Builder addPendingLanguage(String value)
RecognitionSupport.Builder addSupportedLanguage(String value)
RecognitionSupport build()

Builds the instance.

RecognitionSupport.Builder setInstalledLanguages(List<String> value)

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

RecognitionSupport.Builder setPendingLanguages(List<String> value)

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

RecognitionSupport.Builder setSupportedLanguages(List<String> value)

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

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addInstalledLanguage

public RecognitionSupport.Builder addInstalledLanguage (String value)

Parameters
value String: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.

addPendingLanguage

public RecognitionSupport.Builder addPendingLanguage (String value)

Parameters
value String: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.

addSupportedLanguage

public RecognitionSupport.Builder addSupportedLanguage (String value)

Parameters
value String: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.

build

public RecognitionSupport build ()

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

Returns
RecognitionSupport This value cannot be null.

setInstalledLanguages

public RecognitionSupport.Builder setInstalledLanguages (List<String> value)

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

Parameters
value List: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.

setPendingLanguages

public RecognitionSupport.Builder setPendingLanguages (List<String> value)

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

Parameters
value List: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.

setSupportedLanguages

public RecognitionSupport.Builder setSupportedLanguages (List<String> value)

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

Parameters
value List: This value cannot be null.

Returns
RecognitionSupport.Builder This value cannot be null.