NotificationListenerService.CancelAllNotifications 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.
Inform the notification manager about dismissal of all notifications.
[Android.Runtime.Register("cancelAllNotifications", "()V", "")]
public void CancelAllNotifications ();
[<Android.Runtime.Register("cancelAllNotifications", "()V", "")>]
member this.CancelAllNotifications : unit -> unit
- Attributes
Remarks
Inform the notification manager about dismissal of all notifications.
Use this if your listener has a user interface that allows the user to dismiss all notifications, similar to the behavior of Android's status bar and notification panel. It should be called after the user invokes the "dismiss all" function of your UI; upon being informed, the notification manager will actually remove all active notifications and you will get multiple #onNotificationRemoved(StatusBarNotification)
callbacks.
The service should wait for the #onListenerConnected()
event before performing this operation.
#cancelNotification(String, String, int)
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
See also
- <xref:Android.Service.Notification.NotificationListenerService.CancelNotification(System.String%2c+System.String%2c+System.String)>