次の方法で共有


NotificationListenerService.OnNotificationRemoved メソッド

定義

オーバーロード

OnNotificationRemoved(StatusBarNotification)

通知が削除されるタイミングを確認するには、このメソッドを実装します。

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap)

通知が削除されるタイミングを確認するには、このメソッドを実装します。

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

通知が削除されるタイミングを確認するには、このメソッドを実装します。

OnNotificationRemoved(StatusBarNotification)

通知が削除されるタイミングを確認するには、このメソッドを実装します。

[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

パラメーター

sbn
StatusBarNotification

削除された を投稿 android.app.Notification するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。

属性

注釈

通知が削除されるタイミングを確認するには、このメソッドを実装します。

これは、ユーザーがシステム UI (または別の通知リスナー) を使用して通知を閉じたか、アプリが通知を取り消したために発生する可能性があります。

注: 受け取るオブジェクトは StatusBarNotification "light" になります。つまり、 StatusBarNotification#getNotificationandroid.app.Notification#largeIconなどのandroid.app.Notification#contentView重いフィールドが不足している可能性があります。 ただし、 の StatusBarNotification他のすべてのフィールドは、この呼び出しと に対する以前の呼び出し #onNotificationPosted(StatusBarNotification)と一致するのに十分です。

android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+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")]
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

パラメーター

sbn
StatusBarNotification

削除された を投稿 android.app.Notification するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。

rankingMap
NotificationListenerService.RankingMap

アクティブな通知のランク付け情報を取得するために使用できる現在のランク付けマップ。

属性

注釈

android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

OnNotificationRemoved(StatusBarNotification, NotificationListenerService+RankingMap, NotificationCancelReason)

通知が削除されるタイミングを確認するには、このメソッドを実装します。

[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

パラメーター

sbn
StatusBarNotification

削除された を投稿 android.app.Notification するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。

属性

注釈

android.service.notification.NotificationListenerService.onNotificationRemoved(android.service.notification.StatusBarNotification)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象