Readonly
URIReadonly
actionableIndicates whether this alert should show the source string and action buttons. False for system alerts (which can omit the principal), or expanded, system, and null principals.
Readonly
cookieAn opaque cookie that will be passed to the alert listener for each callback.
Readonly
dataA Base64-encoded structured clone buffer containing data associated with this alert. Only used for web notifications. Chrome callers should use a cookie instead.
Readonly
dirBidi override for the title and contents. Valid values are "auto", "ltr", or "rtl". Ignored if the backend doesn't support localization.
Readonly
imageURLA URL identifying the image to put in the alert. The OS X backend limits the amount of time it will wait for the image to load to six seconds. After that time, the alert will show without an image.
Readonly
inControls the image loading behavior. If true, the image request will be loaded anonymously (without cookies or authorization tokens).
Readonly
langLanguage of the title and text. Ignored if the backend doesn't support localization.
A URL to navigate to if the application is relaunched in to complete interaction with this alert.
Readonly
nameThe name of the notification. On Windows and Android, the name is hashed and used as a notification ID. Notifications will replace previous notifications with the same name.
Readonly
principalThe principal of the page that created the alert. Used for IPC security checks, and to determine whether the alert is actionable.
Readonly
requireIndicates that the notification should remain readily available until the user activates or dismisses the notification.
Readonly
silentWhen set, indicates that no sounds or vibrations should be made.
Readonly
sourceThe host and port of the originating page, or an empty string if the alert is not actionable.
Readonly
textThe contents of the alert.
Readonly
textControls the click behavior. If true, the alert listener will be notified when the user clicks on the alert.
Readonly
titleThe title for the alert.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initializes an alert notification.
Loads the image associated with this alert.
The number of milliseconds to wait before cancelling the image request. If zero, there is no timeout.
An |nsIAlertNotificationImageListener| implementation, notified when the image loads. The listener is kept alive until the request completes.
An opaque parameter passed to the listener's methods. Not used by the libnotify backend, but the OS X backend passes the pending notification.
Generated using TypeDoc
The URI of the page that created the alert. |null| if the alert is not actionable.