Aracılığıyla paylaş


NotificationListenerService.GetSnoozedNotifications Method

Definition

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.

Java documentation for android.service.notification.NotificationListenerService.getSnoozedNotifications().

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.

Applies to