Język

NotificationDetails.Builder.SetNotification(Notification) Method

Definition

Sets the payload for the notification details.

[Android.Runtime.Register("setNotification", "(Landroid/app/Notification;)Landroid/app/personalcontext/hint/NotificationDetails$Builder;", "", ApiSince=37)]
public Android.App.PersonalContext.Hint.NotificationDetails.Builder SetNotification(Android.App.Notification notification);
[<Android.Runtime.Register("setNotification", "(Landroid/app/Notification;)Landroid/app/personalcontext/hint/NotificationDetails$Builder;", "", ApiSince=37)>]
member this.SetNotification : Android.App.Notification -> Android.App.PersonalContext.Hint.NotificationDetails.Builder

Parameters

notification
Notification

The notification payload to record.

Returns

The builder with its notification payload set.

Attributes

Remarks

A null notification payload is rejected.

Applies to