NotificationStore

In-memory snapshot of active notifications maintained by McpNotificationListenerServiceBase. Tools read from it; the service writes to it on lifecycle callbacks.

Three parallel caches are kept: the raw StatusBarNotification map for existence checks (e.g. dismiss), a NotificationEvent map holding a pure-data projection of every active notification, and a projected RepliableNotification map for reply tools that should not be coupled to platform types. Projections are recomputed on every put; the repliable one is dropped when no free-form RemoteInput exists.

Assumes a single connected McpNotificationListenerServiceBase per process, which Android enforces for NotificationListenerService anyway.

Functions

Link copied to clipboard
Link copied to clipboard

Pure-data view of every active notification, from any app.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard