Dart API Referencedart:htmlNotification

Notification Interface

Mobile Only in Gecko 2.0

Available only in Firefox Mobile as of Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Non-standard

The notification object, which you create using the navigator.mozNotification  object's createNotification() method, is used to configure and display desktop notifications to the user.

Extends

EventTarget

Constructors

Code new Notification(String title, [Map options]) #

Notification(String title, [Map options]);

Methods

Code void cancel() #

void cancel();

Code void close() #

void close();

Code NotificationEvents get on() #

NotificationEvents get on();

Code void show() #

Displays the notification.
void show();

Code void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) #

void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);

Code bool $dom_dispatchEvent(Event evt) #

bool $dom_dispatchEvent(Event evt);

Code void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) #

void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);

Fields

Code String dir #

String dir;

Code String replaceId #

String replaceId;

Code String tag #

String tag;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.