new ActivityWindow(config, caller)
ActivityWindow is the wrapper for the inline activity instances.
ActivityWindow is the wrapper for the inline activity instances. For window disposition activity, they are done in AppWindow.
Flow chart
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | The configuration object of this activity. |
caller |
AppWindow | ActivityWindow | The caller of this activity. |
- Source:
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.
Fired when the page visibility of the activity window is changed to background.
- Source:
activityclose
Fired when the activity window is closed.
Fired when the activity window is closed.
- Source:
activityclosing
Fired when the activity window is cloing.
Fired when the activity window is cloing.
- Source:
activitycreated
Fired when the activity window is created.
Fired when the activity window is created.
- Source:
activityforeground
Fired when the page visibility of the activity window is changed to foreground.
Fired when the page visibility of the activity window is changed to foreground.
- Source:
activityopen
Fired when the activity window is opened.
Fired when the activity window is opened.
- Source:
activityopening
Fired when the activity window is opening.
Fired when the activity window is opening.
- Source:
activityrendered
Fired when the activity window is rendered to the DOM tree.
Fired when the activity window is rendered to the DOM tree.
- Source:
activityterminated
Fired when the activity window is removed.
Fired when the activity window is removed.
- Source:
activitywillrender
Fired before the activity window is rendered.
Fired before the activity window is rendered.
- Source: