getActiveNotifications

@NonNull
open fun getActiveNotifications(): @NonNull List<StatusBarNotification>

Recover a list of active notifications: ones that have been posted by the calling app that have not yet been dismissed by the user or canceled by the app.

StatusBarNotification object, including the original and supplied to (via and ) as well as a copy of the original object (via ).

From Q, will also return notifications you've posted as an app's notification delegate via notifyAsPackage.

Return

A list of StatusBarNotification.