NotificationListenerService.GetSnoozedNotifications Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Like #getActiveNotifications()
, but returns the list of currently snoozed
notifications, for all users this listener has access to.
[Android.Runtime.Register("getSnoozedNotifications", "()[Landroid/service/notification/StatusBarNotification;", "", ApiSince=26)]
public Android.Service.Notification.StatusBarNotification[]? GetSnoozedNotifications ();
[<Android.Runtime.Register("getSnoozedNotifications", "()[Landroid/service/notification/StatusBarNotification;", "", ApiSince=26)>]
member this.GetSnoozedNotifications : unit -> Android.Service.Notification.StatusBarNotification[]
Returns
An array of snoozed notifications, sorted in natural order.
- Attributes
Remarks
Like #getActiveNotifications()
, but returns the list of currently snoozed notifications, for all users this listener has access to.
The service should wait for the #onListenerConnected()
event before performing this operation.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.