TextClassification.Icon Property

Definition

This method was deprecated in API level 28.

public Android.Graphics.Drawables.Drawable? Icon { [Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Drawable;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Drawable;", "", ApiSince=26)>]
member this.Icon : Android.Graphics.Drawables.Drawable

Property Value

This value may be null.

Attributes

Remarks

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

Returns an icon that may be rendered on a widget used to act on the classified text. NOTE: This field is not parcelable and only represents the icon of the first RemoteAction (if one exists) when this object is read from a parcel.

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

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