Notification.Builder.SetBadgeIconType(NotificationBadgeIconType) Method

Definition

Sets which icon to display as a badge for this notification.

[Android.Runtime.Register("setBadgeIconType", "(I)Landroid/app/Notification$Builder;", "GetSetBadgeIconType_IHandler", ApiSince=26)]
public virtual Android.App.Notification.Builder SetBadgeIconType(Android.App.NotificationBadgeIconType icon);
[<Android.Runtime.Register("setBadgeIconType", "(I)Landroid/app/Notification$Builder;", "GetSetBadgeIconType_IHandler", ApiSince=26)>]
abstract member SetBadgeIconType : Android.App.NotificationBadgeIconType -> Android.App.Notification.Builder
override this.SetBadgeIconType : Android.App.NotificationBadgeIconType -> Android.App.Notification.Builder

Parameters

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets which icon to display as a badge for this notification. Must be one of Notification.BADGE_ICON_NONE, Notification.BADGE_ICON_SMALL, Notification.BADGE_ICON_LARGE. Note: This value might be ignored, for launchers that don't support badge icons.

Android reference for android.app.Notification.Builder.setBadgeIconType.

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