Freigeben über


NotificationListenerService.Ranking.CanBubble Method

Definition

Returns whether the user has allowed bubbles globally, at the app level, and at the channel level for this notification.

[Android.Runtime.Register("canBubble", "()Z", "GetCanBubbleHandler", ApiSince=29)]
public virtual bool CanBubble ();
[<Android.Runtime.Register("canBubble", "()Z", "GetCanBubbleHandler", ApiSince=29)>]
abstract member CanBubble : unit -> bool
override this.CanBubble : unit -> bool

Returns

Attributes

Remarks

Returns whether the user has allowed bubbles globally, at the app level, and at the channel level for this notification.

This does not take into account the current importance of the notification, the current DND state, or whether the posting app is foreground.

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

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