NotificationListenerService.OnNotificationRemoved Methode

Definition

Überlädt

OnNotificationRemoved(StatusBarNotification)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

OnNotificationRemoved(StatusBarNotification)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

[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

Parameter

sbn
StatusBarNotification

Eine Datenstruktur, die mindestens die ursprünglichen Informationen (Tag und ID) und die Quelle (Paketname) kapselt, die zum Posten von verwendet wurden, das android.app.Notification gerade entfernt wurde.

Attribute

Hinweise

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

Dies kann auftreten, weil der Benutzer die Benachrichtigung über die Systembenutzeroberfläche (oder einen anderen Benachrichtigungslistener) verworfen hat oder weil die App die Benachrichtigung zurückgezogen hat.

HINWEIS: Das StatusBarNotification Objekt, das Sie erhalten, ist "light". Das heißt, das Ergebnis von StatusBarNotification#getNotification fehlt möglicherweise einige schwergewichtige Felder wie android.app.Notification#contentView und android.app.Notification#largeIcon. Alle anderen Felder auf StatusBarNotificationsind jedoch intakt, die ausreichen, um diesen Aufruf mit einem vorherigen Aufruf von abzugleichen #onNotificationPosted(StatusBarNotification).

Java-Dokumentation für android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Teile dieser Seite sind Änderungen, die auf Arbeiten basieren, die vom Android Open Source Project erstellt und freigegeben wurden und gemäß den In Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

[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

Parameter

sbn
StatusBarNotification

Eine Datenstruktur, die mindestens die ursprünglichen Informationen (Tag und ID) und die Quelle (Paketname) kapselt, die zum Posten von verwendet wurden, das android.app.Notification gerade entfernt wurde.

rankingMap
NotificationListenerService.RankingMap

Die aktuelle Bewertungszuordnung, die zum Abrufen von Bewertungsinformationen für aktive Benachrichtigungen verwendet werden kann.

Attribute

Hinweise

Java-Dokumentation für android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Teile dieser Seite sind Änderungen, die auf Arbeiten basieren, die vom Android Open Source Project erstellt und freigegeben wurden und gemäß den In Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

Implementieren Sie diese Methode, um zu erfahren, wann Benachrichtigungen entfernt werden.

[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

Parameter

sbn
StatusBarNotification

Eine Datenstruktur, die mindestens die ursprünglichen Informationen (Tag und ID) und die Quelle (Paketname) kapselt, die zum Posten von verwendet wurden, das android.app.Notification gerade entfernt wurde.

Attribute

Hinweise

Java-Dokumentation für android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification).

Teile dieser Seite sind Änderungen, die auf Arbeiten basieren, die vom Android Open Source Project erstellt und freigegeben wurden und gemäß den In Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: