Index

AppWindowFactory

new AppWindowFactory()

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

Members

private _started :Boolean

Indicate whether this class is started or not.

Methods

launch(config)

Launch an app window.

Parameters:
Name Type Description
config BrowserConfig

Generated by BrowserConfigHelper.

publish(event, detail)

Publish a CustomEvent.

Parameters:
Name Type Description
event String

The name of the event.

detail Object

The data passed when initializing the event.

start()

Register all event handlers.

stop()

Unregister all event handlers.