WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIAlertsService

IID:e177399e-2e31-4019-aed3-cba63ce9fa99
Inherits From:nsISupports

This interface is intended to be used as a service.


Methods

void showAlertNotification ( AString imageUrl , AString title , AString text , PRBool textClickable , AString cookie , nsIObserver alertListener , AString name )

void showAlertNotification ( AString imageUrl , AString title , AString text , PRBool textClickable , AString cookie , nsIObserver alertListener , AString name )

Displays a sliding notification window.

The following arguments will be passed to the alertListener's observe() method: subject - null topic - "alertfinished" when the alert goes away "alertclickcallback" when the text is clicked data - the value of the cookie parameter passed to showAlertNotification.

Arguments:
imageUrl: A URL identifying the image to put in the alert.
title: The title for the alert.
text: The contents of the alert.
textClickable: If true, causes the alert text to look like a link and notifies the listener when user attempts to click the alert text.
cookie: A blind cookie the alert will pass back to the consumer during the alert listener callbacks.
alertListener: Used for callbacks. May be null if the caller doesn't care about callbacks.
name: The name of the notification. This is currently only used on OS X with Growl. On OS X with Growl, users can disable notifications with a given name.

Reference documentation is generated from Mozilla's source.