Language

TextClassification.Label Property

Definition

Returns a label that may be rendered on a widget used to act on the classified text.

public string? Label { get; }
member this.Label : string

Property Value

The legacy action label converted to a string, or null if no label is available.

Remarks

This method was deprecated in API level 28. Use getActions() instead.

Returns a label that may be rendered on a widget used to act on the classified text.

NOTE: This field is not parcelable and only represents the label of the first RemoteAction (if one exists) when this object is read from a parcel.

Android reference for android.view.textclassifier.TextClassification.getLabel.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to