NotificationListenerService.OnNotificationRemoved メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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
パラメーター
削除された を投稿 android.app.Notification
するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。
- 属性
注釈
通知が削除されるタイミングを確認するには、このメソッドを実装します。
これは、ユーザーがシステム UI (または別の通知リスナー) を使用して通知を閉じたか、アプリが通知を取り消したために発生する可能性があります。
注: 受け取るオブジェクトは StatusBarNotification
"light" になります。つまり、 StatusBarNotification#getNotification
や android.app.Notification#largeIcon
などのandroid.app.Notification#contentView
重いフィールドが不足している可能性があります。 ただし、 の StatusBarNotification
他のすべてのフィールドは、この呼び出しと に対する以前の呼び出し #onNotificationPosted(StatusBarNotification)
と一致するのに十分です。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。
適用対象
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
パラメーター
削除された を投稿 android.app.Notification
するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。
- rankingMap
- NotificationListenerService.RankingMap
アクティブな通知のランク付け情報を取得するために使用できる現在のランク付けマップ。
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。
適用対象
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
パラメーター
削除された を投稿 android.app.Notification
するために使用される元の情報 (タグと ID) とソース (パッケージ名) をカプセル化するデータ構造。
- rankingMap
- NotificationListenerService.RankingMap
- reason
- NotificationCancelReason
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。