feat: dismiss all notifications from the app menu

This commit is contained in:
Blendman974 committed 2026-11-06 03:19:58 +01:00
1 parent 62ae01a4f1
commit 3124ae852a
6 files changed
+128 -1

No files matched your search

+7
View File
@@ -337,6 +337,13 @@ export function dismissNotification(notificationKey: string): boolean {
);
}
/** Explicit user action: dismiss on the phone as well as on the glasses. */
export function dismissAllNotifications(): boolean {
if (!global.isAndroid) return false;
invalidateIconCaches();
return Boolean(com.faceclaw.app.FaceclawMediaNotificationListenerService.dismissAllNotifications());
}
export function onAndroidNotificationPosted(listener: (notificationKey: string) => void): () => void {
return addNotificationListener(notificationPostedListeners, listener);
}