Notification.BubbleMetadata.Builder.SetAutoExpandBubble(Boolean) Method

Definition

Sets whether the bubble will be posted in its expanded state.

[Android.Runtime.Register("setAutoExpandBubble", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetAutoExpandBubble(bool shouldExpand);
[<Android.Runtime.Register("setAutoExpandBubble", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetAutoExpandBubble : bool -> Android.App.Notification.BubbleMetadata.Builder

Parameters

shouldExpand
Boolean

boolean

Returns

This Android.App.Notification.BubbleMetadata.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets whether the bubble will be posted in its expanded state. This flag has no effect if the app posting the bubble is not in the foreground. The app is considered foreground if it is visible and on the screen, note that a foreground service does not qualify.

Generally, this flag should only be set if the user has performed an action to request or create a bubble.

Setting this flag is optional; it defaults to false.

Android reference for android.app.Notification.BubbleMetadata.Builder.setAutoExpandBubble.

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