Index

ActivityWindow

new ActivityWindow(config, caller)

ActivityWindow is the wrapper for the inline activity instances.
For window disposition activity, they are done in AppWindow.


Flow chart

ActivityWindow flow

Parameters:
Name Type Description
config Object

The configuration object of this activity.

caller AppWindow | ActivityWindow

The caller of this activity.

Example
var app = new AppWindow({
  url: 'http://uitest.gaiamobile.org:8080/index.html',
  manifestURL: 'http://uitest.gaiamobile.org:8080/manifest.webapp'
});
var activity = new ActivityWindow({
  url: 'http://gallery.gaiamobile.org:8080/pick.html',
  manifestURL: 'http://gallery.gaiamobile.org:8080/manifest.webapp'
}, app);

Events

activitybackground

Fired when the page visibility of the activity window is
changed to background.

activityclose

Fired when the activity window is closed.

activityclosing

Fired when the activity window is cloing.

activitycreated

Fired when the activity window is created.

activityforeground

Fired when the page visibility of the activity window is
changed to foreground.

activityopen

Fired when the activity window is opened.

activityopening

Fired when the activity window is opening.

activityrendered

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

activityterminated

Fired when the activity window is removed.

activitywillrender

Fired before the activity window is rendered.