TextClassificationContext


class TextClassificationContext


A representation of the context in which text classification would be performed.

Summary

Public functions

java-static TextClassificationContext

Extracts a TextClassificationContext from a bundle that was added using toBundle.

String

Returns the package name for the calling package.

String

Returns the widget type for this classification context.

String?

Returns a custom version string for the widget type.

Bundle

Adds this classification to a Bundle that can be read back with the same parameters to createFromBundle.

String!

Public functions

createFromBundle

java-static fun createFromBundle(bundle: Bundle): TextClassificationContext

Extracts a TextClassificationContext from a bundle that was added using toBundle.

getPackageName

fun getPackageName(): String

Returns the package name for the calling package.

getWidgetType

fun getWidgetType(): String

Returns the widget type for this classification context.

getWidgetVersion

fun getWidgetVersion(): String?

Returns a custom version string for the widget type.

See also
getWidgetType

toBundle

fun toBundle(): Bundle

Adds this classification to a Bundle that can be read back with the same parameters to createFromBundle.

toString

fun toString(): String!