Lenguaje

Notification.Builder.SetLocusId(LocusId) Método

Definición

Establece el LocusId asociado a esta notificación.

[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

Parámetros

locusId
LocusId

LocusId: este valor puede ser NULL.

Devoluciones

Esta instancia de Android.App.Notification.Builder, lo que permite encadenar llamadas.

Atributos

Comentarios

Establece el LocusId asociado a esta notificación. Se debe llamar a este método cuando se usa locusId en otros lugares (como ShortcutInfo y ContentCaptureContext) para que los servicios de inteligencia del dispositivo puedan correlacionarlos.

Referencia de Android para android.app.Notification.Builder.setLocusId.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a