Language

Control.StatelessBuilder.SetCustomIcon(Icon) Method

Definition

Optional icon to be shown with the Control.

[Android.Runtime.Register("setCustomIcon", "(Landroid/graphics/drawable/Icon;)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatelessBuilder SetCustomIcon(Android.Graphics.Drawables.Icon? customIcon);
[<Android.Runtime.Register("setCustomIcon", "(Landroid/graphics/drawable/Icon;)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)>]
member this.SetCustomIcon : Android.Graphics.Drawables.Icon -> Android.Service.Controls.Control.StatelessBuilder

Parameters

customIcon
Icon

icon to show. This value may be null.

Returns

this This value cannot be null.

Attributes

Remarks

Optional icon to be shown with the Control. It is highly recommended to let the system default the icon unless the default icon is not suitable.

Android reference for android.service.controls.Control.StatelessBuilder.setCustomIcon.

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