Added in API level 29

Builder

class Builder
kotlin.Any
   ↳ android.view.textclassifier.TextLanguage.Request.Builder

A builder for building TextLanguage requests.

Summary

Public constructors

Creates a builder to build TextLanguage requests.

Public methods
TextLanguage.Request

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.

Public constructors

Builder

Added in API level 29
Builder(text: CharSequence)

Creates a builder to build TextLanguage requests.

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

Public methods

build

Added in API level 29
fun build(): TextLanguage.Request

Builds and returns a new TextLanguage request object.

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

Return
TextLanguage.Request This value cannot be null.

setExtras

Added in API level 29
fun setExtras(bundle: Bundle): TextLanguage.Request.Builder

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

Parameters
bundle Bundle: This value cannot be null.
Return
TextLanguage.Request.Builder This value cannot be null.