Compartir a través de


NotificationManager.AreBubblesAllowed Method

Definition

Gets whether all notifications posted by this app can appear outside of the notification shade, floating over other apps' content.

[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

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()).

This member is deprecated. use #getBubblePreference() instead.

Java documentation 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