NotificationManager.AreBubblesAllowed Method

Definition

This method was deprecated in API level 31.

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

Returns

Attributes

Remarks

This method was deprecated in API level 31. use getBubblePreference() instead.

Gets whether all notifications posted by this app can appear outside of the notification shade, floating over other apps' content. This value will be ignored for notifications that are posted to channels that do not allow bubbles (NotificationChannel.canBubble()).

See also:

Android reference for android.app.NotificationManager.areBubblesAllowed.

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