Class: AttentionWindow

AttentionWindow

new AttentionWindow(config)

AttentionWindow is a special opened window with specific permission: 'attention'.

AttentionWindow is a special opened window with specific permission: 'attention'. It would show in front of any existing app windows to get users' attention.

Flow chart

Parameters:
Name Type Description
config Object

The configuration object of this attention.

Source:
Example
var attention = new AttentionWindow({
  url: 'app://clock.gaiamobile.org:8080/alarm.html',
  manifestURL: 'http://gallery.gaiamobile.org:8080/manifest.webapp',
  iframe: iframe
});

Extends

Events

appclose

Fired when the app's closing animation is ended.

Fired when the app's closing animation is ended.

Inherited From:
Source:

appclosing

Fired when the app is doing closing animation.

Fired when the app is doing closing animation.

Inherited From:
Source:

appopen

Fired when the app's opening animation is ended.

Fired when the app's opening animation is ended.

Inherited From:
Source:

appopening

Fired when the app is doing opening animation.

Fired when the app is doing opening animation.

Inherited From:
Source:

attentionclosed

Fired when the attention window is closed.

Fired when the attention window is closed.

Source:

attentionclosed

Fired when the attention window is closed.

Fired when the attention window is closed.

Source:

attentionclosing

Fired when the attention window is closing.

Fired when the attention window is closing.

Source:

attentionclosing

Fired when the attention window is cloing.

Fired when the attention window is cloing.

Source:

attentioncreated

Fired when the attention window is created.

Fired when the attention window is created.

Source:

attentioncreated

Fired when the attention window is created.

Fired when the attention window is created.

Source:

attentionopened

Fired when the attention window is opened.

Fired when the attention window is opened.

Source:

attentionopened

Fired when the attention window is opened.

Fired when the attention window is opened.

Source:

attentionopening

Fired when the attention window is opening.

Fired when the attention window is opening.

Source:

attentionopening

Fired when the attention window is opening.

Fired when the attention window is opening.

Source:

attentionrendered

Fired when the attention window is rendered to the DOM tree.

Fired when the attention window is rendered to the DOM tree.

Source:

attentionrendered

Fired when the attention window is rendered to the DOM tree.

Fired when the attention window is rendered to the DOM tree.

Source:

attentionterminated

Fired when the attention window is removed.

Fired when the attention window is removed.

Source:

attentionterminated

Fired when the attention window is removed.

Fired when the attention window is removed.

Source:

attentionwillrender

Fired before the attention window will be rendered.

Fired before the attention window will be rendered.

Source:

attentionwillrender

Fired before the attention window is rendered.

Fired before the attention window is rendered.

Source: