@camera.ui/sdk / manager / NotificationManager
Interface: NotificationManager ​
Defined in: manager/index.ts:407
Notification manager interface for publishing notifications into the host.
Plugins call publish to ask the host to fan a Notification out to every installed Notifier-plugin and the in-app UI. The host applies user settings (master toggle, per-source toggle, quiet hours) and the publishing plugin's declared capabilities; calls from plugins without PluginCapability.PublishNotifications are silently dropped.
Accessed via api.notificationManager in plugins.
Example ​
await api.notificationManager.publish({
title: 'Camera offline',
body: 'Front Door stopped recording',
severity: Severity.Warn,
deepLink: '/cameras/front-door',
data: { cameraId: 'front-door' },
});Methods ​
publish() ​
publish(
notification):Promise<void>
Defined in: manager/index.ts:417
Send a notification to the host for fan-out to every installed Notifier-plugin and the in-app UI.
Parameters ​
notification ​
Notification payload to publish.
Returns ​
Promise<void>
Resolves once the publish was handed to the transport. Downstream delivery is async and failures there never propagate back here.