NotificationWatchTools

Provider for the notification-watch module. Wires up WatchNotificationsTool, UnwatchNotificationsTool, and ListNotificationWatchesTool, all backed by WatchRegistry. Watches match against the live stream via NotificationListenerBus.events rather than polling — the host's listener service must be bound and notification listener access granted for events to flow. As with the sibling NotificationsReplyTools module, this is a special-access permission granted via Settings, so requiredPermissions is empty and hasPermissions always returns true; use isNotificationListenerEnabled or permissionStatus to check actual readiness.

Functions

Link copied to clipboard
fun all(context: Context): List<McpTool>
Link copied to clipboard

Convention method matching other modules; always returns true because the runtime-permission concept doesn't apply. Use isNotificationListenerEnabled (or permissionStatus) to know whether the watch tools will actually succeed.

Link copied to clipboard
Link copied to clipboard

Notification listener access is a special access permission granted via Settings, not at runtime — no manifest entries to request.

Link copied to clipboard

All watch tools are device-independent — no API floor. supportedTools always returns the full set.