public interface Notification extends EventTarget
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.
Modifier and Type | Method and Description |
---|---|
EventRemover |
addEventListener(String type,
EventListener listener)
Register an event handler of a specific event type on the
EventTarget . |
EventRemover |
addEventListener(String type,
EventListener listener,
boolean useCapture)
Register an event handler of a specific event type on the
EventTarget . |
void |
cancel() |
void |
close() |
boolean |
dispatchEvent(Event evt)
Dispatch an event to this
EventTarget . |
String |
getDir() |
EventListener |
getOnclick()
A function to call when the notification is clicked.
|
EventListener |
getOnclose()
A function to call when the notification is dismissed.
|
EventListener |
getOndisplay() |
EventListener |
getOnerror() |
EventListener |
getOnshow() |
String |
getReplaceId() |
String |
getTag() |
void |
removeEventListener(String type,
EventListener listener)
Removes an event listener from the
EventTarget . |
void |
removeEventListener(String type,
EventListener listener,
boolean useCapture)
Removes an event listener from the
EventTarget . |
void |
setDir(String arg) |
void |
setOnclick(EventListener arg) |
void |
setOnclose(EventListener arg) |
void |
setOndisplay(EventListener arg) |
void |
setOnerror(EventListener arg) |
void |
setOnshow(EventListener arg) |
void |
setReplaceId(String arg) |
void |
setTag(String arg) |
void |
show()
Displays the notification.
|
String getDir()
void setDir(String arg)
EventListener getOnclick()
void setOnclick(EventListener arg)
EventListener getOnclose()
void setOnclose(EventListener arg)
EventListener getOndisplay()
void setOndisplay(EventListener arg)
EventListener getOnerror()
void setOnerror(EventListener arg)
EventListener getOnshow()
void setOnshow(EventListener arg)
String getReplaceId()
void setReplaceId(String arg)
String getTag()
void setTag(String arg)
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
void cancel()
void close()
boolean dispatchEvent(Event evt)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void show()
Copyright © 2018. All rights reserved.