TextClassification.Builder.SetIcon(Drawable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method was deprecated in API level 28.
[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)]
public Android.Views.TextClassifiers.TextClassification.Builder SetIcon(Android.Graphics.Drawables.Drawable? icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)>]
member this.SetIcon : Android.Graphics.Drawables.Drawable -> Android.Views.TextClassifiers.TextClassification.Builder
Parameters
- icon
- Drawable
Drawable: 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 icon 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 icon represents the icon of the first RemoteAction (if one exists).
Android reference for android.view.textclassifier.TextClassification.Builder.setIcon.
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.