API > wxt/browser > Browser > notifications > clear
Function: clear()
clear(
notificationId,callback?):void
Clears the specified notification.
Parameters
▪ notificationId: string
The id of the notification to be cleared. This is returned by notifications.create method.
▪ callback?: (wasCleared) => void
Called to indicate whether a matching notification existed. The callback is required before Chrome 42.
Source
packages/browser/src/gen/index.d.ts:7172
Generated using typedoc-plugin-markdown and TypeDoc