Language

NotificationManager.GetActiveNotifications メソッド

定義

アクティブな通知の一覧を回復します。ユーザーによってまだ無視されていない呼び出し元のアプリによって投稿されたもの、またはアプリによってキャンセル (String,int)されます。

[Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler", ApiSince=23)]
public virtual Android.Service.Notification.StatusBarNotification[]? GetActiveNotifications();
[<Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler", ApiSince=23)>]
abstract member GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]
override this.GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]

返品

StatusBarNotification の配列。

属性

注釈

アクティブな通知の一覧を回復します。ユーザーによってまだ無視されていない呼び出し元のアプリによって投稿されたもの、またはアプリによってキャンセル (String,int)されます。 StatusBarNotification オブジェクト。notify() に指定された元のタグと ID (getTag() と getId()) のほか、元の Notification オブジェクトのコピー (StatusBarNotification.getNotification()経由) を含みます)。

Build.VERSION_CODESから。Q では、NotificationManager.notifyAsPackage(String,String,int,Notification) を使用して、アプリの通知デリゲートとして投稿した通知も返されます。

android.app.NotificationManager.getActiveNotificationsの Android リファレンス。

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

適用対象