mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
8 lines
737 B
TypeScript
8 lines
737 B
TypeScript
import { iosNotificationState, iosNotificationMessage } from './notification-icons.ios'
|
|
export function isNotificationListenerEnabled(): boolean { return iosNotificationState() === 'ready' }
|
|
export function requestNotificationListenerAccess(): void { /* iOS exposes no deep link to this Bluetooth setting. */ }
|
|
export function notificationEmptyMessage(): string { return iosNotificationMessage() }
|
|
export type NotificationListenerState = "connected" | "no-access" | "connecting" | "stuck"
|
|
export function notificationListenerState(): NotificationListenerState { return isNotificationListenerEnabled() ? "connected" : "no-access" }
|
|
export function watchNotificationListenerBinding(): void { /* ANCS has no listener binding to watch. */ }
|