Condividi tramite


NotificationManager.Notify Metodo

Definizione

Overload

Notify(String, Int32, Notification)

Invia una notifica da visualizzare nella barra di stato.

Notify(Int32, Notification)

Pubblicare una notifica da visualizzare nella barra di stato.

Notify(String, Int32, Notification)

Invia una notifica da visualizzare nella barra di stato.

[Android.Runtime.Register("notify", "(Ljava/lang/String;ILandroid/app/Notification;)V", "GetNotify_Ljava_lang_String_ILandroid_app_Notification_Handler")]
public virtual void Notify (string? tag, int id, Android.App.Notification? notification);
[<Android.Runtime.Register("notify", "(Ljava/lang/String;ILandroid/app/Notification;)V", "GetNotify_Ljava_lang_String_ILandroid_app_Notification_Handler")>]
override this.Notify : string * int * Android.App.Notification -> unit

Parametri

tag
String

Identificatore di stringa per questa notifica. Può essere null.

id
Int32

Identificatore per questa notifica. La coppia (tag, ID) deve essere univoca all'interno dell'applicazione.

notification
Notification

Oggetto Notification che descrive cosa mostrare all'utente. Non deve essere null.

Attributi

Commenti

Invia una notifica da visualizzare nella barra di stato. Se una notifica con lo stesso tag e ID è già stata pubblicata dall'applicazione e non è ancora stata annullata, verrà sostituita dalle informazioni aggiornate.

All will be granted access to any Uri uris provided on this notification or the notification is posted to using .All android.service.notification.NotificationListenerService listener services will be granted access to Intent#FLAG_GRANT_READ_URI_PERMISSION any provided on this notification or the NotificationChannel notification is posted to using Context#grantUriPermission(String, Uri, int). L'autorizzazione verrà revocata quando la notifica viene annullata oppure è possibile revocare le autorizzazioni con Context#revokeUriPermission(Uri, int).

Documentazione java per android.app.NotificationManager.notify(java.lang.String, int, android.app.Notification).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

Notify(Int32, Notification)

Pubblicare una notifica da visualizzare nella barra di stato.

[Android.Runtime.Register("notify", "(ILandroid/app/Notification;)V", "GetNotify_ILandroid_app_Notification_Handler")]
public virtual void Notify (int id, Android.App.Notification? notification);
[<Android.Runtime.Register("notify", "(ILandroid/app/Notification;)V", "GetNotify_ILandroid_app_Notification_Handler")>]
override this.Notify : int * Android.App.Notification -> unit

Parametri

id
Int32

Identificatore per questa notifica univoca all'interno dell'applicazione.

notification
Notification

Oggetto Notification che descrive cosa mostrare all'utente. Non deve essere null.

Attributi

Commenti

Pubblicare una notifica da visualizzare nella barra di stato. Se una notifica con lo stesso ID è già stata pubblicata dall'applicazione e non è ancora stata annullata, verrà sostituita dalle informazioni aggiornate.

Documentazione java per android.app.NotificationManager.notify(int, android.app.Notification).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a