TextClassification.Request.Builder

public static final class TextClassification.Request.Builder
extends Object

java.lang.Object
   ↳ androidx.textclassifier.TextClassification.Request.Builder


A builder for building TextClassification requests.

Summary

Public constructors

Builder(CharSequence text, int startIndex, int endIndex)

Public methods

TextClassification.Request build()

Builds and returns the request object.

TextClassification.Request.Builder setDefaultLocales(LocaleListCompat defaultLocales)
TextClassification.Request.Builder setExtras(Bundle extras)

Sets the extended, vendor specific data.

TextClassification.Request.Builder setReferenceTime(Long referenceTime)

Inherited methods

Public constructors

Builder

public Builder (CharSequence text, 
                int startIndex, 
                int endIndex)

Parameters
text CharSequence: text providing context for the text to classify (which is specified by the sub sequence starting at startIndex and ending at endIndex)

startIndex int: start index of the text to classify

endIndex int: end index of the text to classify

Public methods