Class: AppWindowFactory

AppWindowFactory

new AppWindowFactory()

AppWindowFactory handle the launch request from gecko and wrap the config with properer parameters.

AppWindowFactory handle the launch request from gecko and wrap the config with properer parameters.

If gecko is asking us to open a webapp, AppWindowFactory would do the instantiation and let AppWindowManager to do the following app opening control via event launchapp.

If gecko is asking us to open an inline activity page, AppWindowFactory would wrap the configuration and sent it to AppWindowFactory for it to do instantiation via event launchactivity.

app and activity launch flow

Source:

Members

(private) _started :Boolean

Indicate whether this class is started or not.

Indicate whether this class is started or not.

Type:
  • Boolean
Source:

Methods

launch(config)

Launch an app window.

Launch an app window.

Parameters:
Name Type Description
config BrowserConfig

Generated by BrowserConfigHelper.

Source:

publish(event, detail)

Publish a CustomEvent.

Publish a CustomEvent.

Parameters:
Name Type Description
event String

The name of the event.

detail Object

The data passed when initializing the event.

Source:

start()

Register all event handlers.

Register all event handlers.

Source:

stop()

Unregister all event handlers.

Unregister all event handlers.

Source: