Notification.Builder.SetBubbleMetadata(Notification+BubbleMetadata) Method

Definition

Sets the BubbleMetadata that will be used to display app content in a floating window over the existing foreground activity.

[Android.Runtime.Register("setBubbleMetadata", "(Landroid/app/Notification$BubbleMetadata;)Landroid/app/Notification$Builder;", "GetSetBubbleMetadata_Landroid_app_Notification_BubbleMetadata_Handler", ApiSince=29)]
public virtual Android.App.Notification.Builder SetBubbleMetadata(Android.App.Notification.BubbleMetadata? data);
[<Android.Runtime.Register("setBubbleMetadata", "(Landroid/app/Notification$BubbleMetadata;)Landroid/app/Notification$Builder;", "GetSetBubbleMetadata_Landroid_app_Notification_BubbleMetadata_Handler", ApiSince=29)>]
abstract member SetBubbleMetadata : Android.App.Notification.BubbleMetadata -> Android.App.Notification.Builder
override this.SetBubbleMetadata : Android.App.Notification.BubbleMetadata -> Android.App.Notification.Builder

Parameters

data
Notification.BubbleMetadata

Notification.BubbleMetadata: This value may be null.

Returns

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

Attributes

Remarks

Sets the BubbleMetadata that will be used to display app content in a floating window over the existing foreground activity. This data will be ignored unless the notification is posted to a channel that allows bubbles.

Notifications allowed to bubble that have valid bubble metadata will display in collapsed state outside of the notification shade on unlocked devices. When a user interacts with the collapsed state, the bubble intent will be invoked and displayed.

Android reference for android.app.Notification.Builder.setBubbleMetadata.

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