Class Index | File Index

Classes


Class gva.util.Notify


Defined in: Notify.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new Notify instance.
Method Summary
Method Attributes Method Name and Description
 
Checks user permission.
 
Hides the current notification.
 
Requests user permission to display notifications.
 
showNotification(type, data)
Creates a notification with the supplied content.
Class Detail
gva.util.Notify()
Creates a new Notify instance.
Method Detail
{Boolean} hasPermission()
Checks user permission.
Returns:
{Boolean} True if user has allowed notiifcations, false if user has denied or not supplied a preference.

hideNotification()
Hides the current notification.

requestPermission(callback)
Requests user permission to display notifications.
Parameters:
{function} callback
The function to call if user accepts the request.

showNotification(type, data)
Creates a notification with the supplied content. NOTE: This method will fail if it is not triggered by a user event.
Parameters:
{String} type
The type of notification (episode is the only one currently available).
{=vo.gva.Episode} data
The data object with parameters specific to the type of notification.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 22 2011 17:41:23 GMT-0800 (PST)