Lingua

ActivityManager.TaskDescription.Builder.SetBadge(Icon) Method

Definition

Set the icon of the badge to use in the TaskDescription.

[Android.Runtime.Register("setBadge", "(Landroid/graphics/drawable/Icon;)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=37)]
public Android.App.ActivityManager.TaskDescription.Builder SetBadge(Android.Graphics.Drawables.Icon? badge);
[<Android.Runtime.Register("setBadge", "(Landroid/graphics/drawable/Icon;)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=37)>]
member this.SetBadge : Android.Graphics.Drawables.Icon -> Android.App.ActivityManager.TaskDescription.Builder

Parameters

badge
Icon

An Icon of a badge to be attached to the icon. This value may be null.

Returns

The same instance of the builder. This value cannot be null.

Attributes

Remarks

Set the icon of the badge to use in the TaskDescription.

The badge is an optional, small icon that is displayed on bottom corner of the icon in places like the taskbar and launcher. There is no default badge, and if not set, no badge will be shown.

Android reference for android.app.ActivityManager.TaskDescription.Builder.setBadge.

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