NotificationManager.BubblePreference Property

Definition

Gets the bubble preference for the app.

public virtual int BubblePreference { [Android.Runtime.Register("getBubblePreference", "()I", "GetGetBubblePreferenceHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getBubblePreference", "()I", "GetGetBubblePreferenceHandler", ApiSince=31)>]
member this.BubblePreference : int

Property Value

the users' bubble preference for the app.

Attributes

Remarks

Gets the bubble preference for the app. This preference only applies to notifications that have been properly configured to bubble.

If #BUBBLE_PREFERENCE_ALL, then any bubble notification will appear as a bubble, as long as the user hasn't excluded it (NotificationChannel#canBubble()).

If #BUBBLE_PREFERENCE_SELECTED, then any bubble notification will appear as a bubble, as long as the user has selected it.

If #BUBBLE_PREFERENCE_NONE, then no notification may appear as a bubble from the app.

Java documentation for android.app.NotificationManager.getBubblePreference().

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