Notification.BubbleMetadata.Builder.SetIntent(PendingIntent) Method

Definition

Sets the intent for the bubble.

[Android.Runtime.Register("setIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetIntent(Android.App.PendingIntent intent);
[<Android.Runtime.Register("setIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetIntent : Android.App.PendingIntent -> Android.App.Notification.BubbleMetadata.Builder

Parameters

intent
PendingIntent

PendingIntent: This value cannot be null.

Returns

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

Attributes

Remarks

Sets the intent for the bubble. The intent that will be used when the bubble is expanded. This will display the app content in a floating window over the existing foreground activity. The intent should point to a resizable activity.

Throws: IllegalStateException if this builder was created via Builder.Builder(String).

Throws: NullPointerException if intent is null.

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

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