TextClassification.Builder.SetLabel(String) Method

Definition

This method was deprecated in API level 28.

[Android.Runtime.Register("setLabel", "(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)]
public Android.Views.TextClassifiers.TextClassification.Builder SetLabel(string? label);
[<Android.Runtime.Register("setLabel", "(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)>]
member this.SetLabel : string -> Android.Views.TextClassifiers.TextClassification.Builder

Parameters

label
String

String: This value may be null.

Returns

This value cannot be null.

Attributes

Remarks

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

Sets the label for the primary action that may be rendered on a widget used to act on the classified text. NOTE: This field is not parcelled. If read from a parcel, the returned label represents the label of the first RemoteAction (if one exists).

Android reference for android.view.textclassifier.TextClassification.Builder.setLabel.

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