Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

TextLanguage.Request.Builder

public static final class TextLanguage.Request.Builder
extends Object

java.lang.Object
   ↳ android.view.textclassifier.TextLanguage.Request.Builder


A builder for building TextLanguage requests.

Summary

Public constructors

TextLanguage.Request.Builder(CharSequence text)

Creates a builder to build TextLanguage requests.

Public methods

TextLanguage.Request build()

Builds and returns a new TextLanguage request object.

TextLanguage.Request.Builder setExtras(Bundle bundle)

Sets a bundle containing non-structured extra information about the request.

Inherited methods

Public constructors

TextLanguage.Request.Builder

public TextLanguage.Request.Builder (CharSequence text)

Creates a builder to build TextLanguage requests.

Parameters
text CharSequence: the text to process. This value must never be null.

Public methods

build

public TextLanguage.Request build ()

Builds and returns a new TextLanguage request object.

If necessary, this method will verify fields, clamp them, and make them immutable.

Returns
TextLanguage.Request This value will never be null.

setExtras

public TextLanguage.Request.Builder setExtras (Bundle bundle)

Sets a bundle containing non-structured extra information about the request.

Parameters
bundle Bundle: This value must never be null.

Returns
TextLanguage.Request.Builder This value will never be null.