NotificationListenerService.OnNotificationPosted Methode

Definition

Überlädt

OnNotificationPosted(StatusBarNotification)

Implementieren Sie diese Methode, um mehr über neue Benachrichtigungen zu erfahren, die von Apps bereitgestellt werden.

OnNotificationPosted(StatusBarNotification, NotificationListenerService+RankingMap)

Implementieren Sie diese Methode, um mehr über neue Benachrichtigungen zu erfahren, die von Apps bereitgestellt werden.

OnNotificationPosted(StatusBarNotification)

Implementieren Sie diese Methode, um mehr über neue Benachrichtigungen zu erfahren, die von Apps bereitgestellt werden.

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

Parameter

sbn
StatusBarNotification

Eine Datenstruktur, die das ursprüngliche android.app.Notification Objekt sowie seine identifizierenden Informationen (Tag und ID) und Quelle (Paketname) kapselt.

Attribute

Hinweise

Implementieren Sie diese Methode, um mehr über neue Benachrichtigungen zu erfahren, die von Apps bereitgestellt werden.

Java-Dokumentation für android.service.notification.NotificationListenerService.onNotificationPosted(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:

OnNotificationPosted(StatusBarNotification, NotificationListenerService+RankingMap)

Implementieren Sie diese Methode, um mehr über neue Benachrichtigungen zu erfahren, die von Apps bereitgestellt werden.

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

Parameter

sbn
StatusBarNotification

Eine Datenstruktur, die das ursprüngliche android.app.Notification Objekt sowie seine identifizierenden Informationen (Tag und ID) und Quelle (Paketname) kapselt.

rankingMap
NotificationListenerService.RankingMap

Die aktuelle Bewertungszuordnung, die zum Abrufen von Rangfolgeinformationen für aktive Benachrichtigungen verwendet werden kann, einschließlich der neu bereitgestellten Benachrichtigungen.

Attribute

Hinweise

Java-Dokumentation für android.service.notification.NotificationListenerService.onNotificationPosted(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: