Condividi tramite


NotificationListenerService.OnNotificationRemoved Metodo

Definizione

Overload

OnNotificationRemoved(StatusBarNotification)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

OnNotificationRemoved(StatusBarNotification)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

[Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Handler")]
public virtual void OnNotificationRemoved (Android.Service.Notification.StatusBarNotification? sbn);
[<Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Handler")>]
abstract member OnNotificationRemoved : Android.Service.Notification.StatusBarNotification -> unit
override this.OnNotificationRemoved : Android.Service.Notification.StatusBarNotification -> unit

Parametri

sbn
StatusBarNotification

Struttura di dati che incapsula almeno le informazioni originali (tag e ID) e l'origine (nome del pacchetto) usate per inserire l'oggetto android.app.Notification appena rimosso.

Attributi

Commenti

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

Questo problema può verificarsi perché l'utente ha ignorato la notifica usando l'interfaccia utente di sistema (o un altro listener di notifica) o perché l'app ha ritirato la notifica.

NOTA: l'oggetto StatusBarNotification ricevuto sarà "leggero", ovvero il risultato di StatusBarNotification#getNotification potrebbe non essere presente in alcuni campi pesanti, ad android.app.Notification#contentView esempio e android.app.Notification#largeIcon. Tuttavia, tutti gli altri campi in StatusBarNotification, sufficienti a corrispondere a questa chiamata con una chiamata precedente a #onNotificationPosted(StatusBarNotification), saranno intatti.

Documentazione java per android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal Android e usato in base ai termini descritti in 2.5 Attribution License Creative Commons 2.5 Attribution License.

Si applica a

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

[Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationListenerService$RankingMap;)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Landroid_service_notification_NotificationListenerService_RankingMap_Handler")]
public virtual void OnNotificationRemoved (Android.Service.Notification.StatusBarNotification? sbn, Android.Service.Notification.NotificationListenerService.RankingMap? rankingMap);
[<Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationListenerService$RankingMap;)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Landroid_service_notification_NotificationListenerService_RankingMap_Handler")>]
abstract member OnNotificationRemoved : Android.Service.Notification.StatusBarNotification * Android.Service.Notification.NotificationListenerService.RankingMap -> unit
override this.OnNotificationRemoved : Android.Service.Notification.StatusBarNotification * Android.Service.Notification.NotificationListenerService.RankingMap -> unit

Parametri

sbn
StatusBarNotification

Struttura di dati che incapsula almeno le informazioni originali (tag e ID) e l'origine (nome del pacchetto) usate per inserire l'oggetto android.app.Notification appena rimosso.

rankingMap
NotificationListenerService.RankingMap

Mappa di classificazione corrente che può essere usata per recuperare le informazioni di classificazione per le notifiche attive.

Attributi

Commenti

Documentazione java per android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal Android e usato in base ai termini descritti in 2.5 Attribution License Creative Commons 2.5 Attribution License.

Si applica a

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

Implementare questo metodo per apprendere quando vengono rimosse le notifiche.

[Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationListenerService$RankingMap;I)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Landroid_service_notification_NotificationListenerService_RankingMap_IHandler", ApiSince=26)]
public virtual void OnNotificationRemoved (Android.Service.Notification.StatusBarNotification? sbn, Android.Service.Notification.NotificationListenerService.RankingMap? rankingMap, Android.Service.Notification.NotificationCancelReason reason);
[<Android.Runtime.Register("onNotificationRemoved", "(Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationListenerService$RankingMap;I)V", "GetOnNotificationRemoved_Landroid_service_notification_StatusBarNotification_Landroid_service_notification_NotificationListenerService_RankingMap_IHandler", ApiSince=26)>]
abstract member OnNotificationRemoved : Android.Service.Notification.StatusBarNotification * Android.Service.Notification.NotificationListenerService.RankingMap * Android.Service.Notification.NotificationCancelReason -> unit
override this.OnNotificationRemoved : Android.Service.Notification.StatusBarNotification * Android.Service.Notification.NotificationListenerService.RankingMap * Android.Service.Notification.NotificationCancelReason -> unit

Parametri

sbn
StatusBarNotification

Struttura di dati che incapsula almeno le informazioni originali (tag e ID) e l'origine (nome del pacchetto) usate per inserire l'oggetto android.app.Notification appena rimosso.

Attributi

Commenti

Documentazione java per android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal Android e usato in base ai termini descritti in 2.5 Attribution License Creative Commons 2.5 Attribution License.

Si applica a