Inherits From:nsISupports

This interface is implemented by an object that wants to observe an event corresponding to a topic.

This interface is implemented by the following components:


void observe ( nsISupports subject , char* topic , PRUnichar* data )

void observe ( nsISupports subject , char* topic , PRUnichar* data )

Observe will be called when there is a notification for the topic topic. This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

subject: : Notification specific interface pointer.
topic: : The notification topic or subject.
data: : Notification specific wide string. subject event.


This interface is the type of the following properties:


This interface is passed as an argument to the following methods:

nsIAlertsService.showAlertNotification, nsICommandManager.addCommandObserver, nsICommandManager.removeCommandObserver, nsIDOMXULDocument.loadOverlay, nsIKeygenThread.startKeyGeneration, nsIMsgPrintEngine.setStartupPPObserver, nsIObserverService.addObserver, nsIObserverService.removeObserver, nsIPref.addObserver, nsIPref.removeObserver, nsIPrefBranch2.addObserver, nsIPrefBranch2.removeObserver, nsIPrintProgress.openProgressDialog, nsIPrintingPrompt.showPageSetup, nsIPrintingPrompt.showProgress, nsIPrintingPromptService.showPageSetup, nsIPrintingPromptService.showProgress, nsITimer.init, nsIWindowWatcher.registerNotification, nsIWindowWatcher.unregisterNotification, nsIXPIDialogService.openProgressDialog

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com