Share via


NotificationListenerService.Ranking.CanShowBadge Method

Definition

Returns whether this notification can be displayed as a badge.

[Android.Runtime.Register("canShowBadge", "()Z", "GetCanShowBadgeHandler", ApiSince=26)]
public virtual bool CanShowBadge ();
[<Android.Runtime.Register("canShowBadge", "()Z", "GetCanShowBadgeHandler", ApiSince=26)>]
abstract member CanShowBadge : unit -> bool
override this.CanShowBadge : unit -> bool

Returns

true if the notification can be displayed as a badge, false otherwise.

Attributes

Remarks

Returns whether this notification can be displayed as a badge.

Java documentation for android.service.notification.NotificationListenerService.Ranking.canShowBadge().

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