DndTools
object DndTools
Provider for the Do Not Disturb tools: GetDndStatusTool and SetDndModeTool.
Reading status needs no special access; SetDndModeTool additionally requires DND policy access granted via Settings (the ACCESS_NOTIFICATION_POLICY manifest permission gates the request, but the access itself is user-granted).
Functions
Link copied to clipboard
Returns whether context holds the notification-policy permission.
Link copied to clipboard
The ACCESS_NOTIFICATION_POLICY permission associated with DND control.