API > wxt/browser > Browser > notifications > create
Function: create()
create(notificationId, options, callback)
create(
notificationId,options,callback?):void
Creates and displays a notification.
Parameters
▪ notificationId: string
Identifier of the notification. If not set or empty, an ID will automatically be generated. If it matches an existing notification, this method first clears that notification before proceeding with the create operation. The notificationId parameter is required before Chrome 42.
▪ options: NotificationOptions<true>
Contents of the notification.
▪ callback?: (notificationId) => void
Returns the notification id (either supplied or generated) that represents the created notification. The callback is required before Chrome 42.
Source
packages/browser/src/gen/index.d.ts:7140
create(options, callback)
create(
options,callback?):void
Creates and displays a notification.
Parameters
▪ options: NotificationOptions<true>
Contents of the notification.
▪ callback?: (notificationId) => void
Returns the notification id (either supplied or generated) that represents the created notification. The callback is required before Chrome 42.
Source
packages/browser/src/gen/index.d.ts:7153
Generated using typedoc-plugin-markdown and TypeDoc