Notification.Builder.SetLocusId(LocusId) Method

Definition

Sets the LocusId associated with this notification.

[Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/app/Notification$Builder;", "GetSetLocusId_Landroid_content_LocusId_Handler", ApiSince=29)]
public virtual Android.App.Notification.Builder SetLocusId(Android.Content.LocusId? locusId);
[<Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/app/Notification$Builder;", "GetSetLocusId_Landroid_content_LocusId_Handler", ApiSince=29)>]
abstract member SetLocusId : Android.Content.LocusId -> Android.App.Notification.Builder
override this.SetLocusId : Android.Content.LocusId -> Android.App.Notification.Builder

Parameters

locusId
LocusId

LocusId: This value may be null.

Returns

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

Attributes

Remarks

Sets the LocusId associated with this notification. This method should be called when the LocusId is used in other places (such as ShortcutInfo and ContentCaptureContext) so the device's intelligence services can correlate them.

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

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