© 2013 Samsung Electronics Co., Ltd. All rights reserved.
This API provides a way to launch other applications and access application management.
The ApplicationManager interface also provides methods to launch other applications explicitly and implicitly through the ApplicationControl interface. The ApplicationControl interface consists of an operation, URI, and MIME type and also describes an action to be performed by other applications and can carry the result from the subsequent application. The ApplicationManager interface also provides methods to handle the application lifecycle, to access the installed applications on the device, and to let an application be notified of a change in the application list.
The Application interface defines the current application's information and the basic operations for current application such as exit or hide.
For more information on the Application features, see Application Guide.
Interface | Method |
---|---|
ApplicationManagerObject | |
ApplicationManager | Application getCurrentApplication() void launch(ApplicationId id, SuccessCallback? successCallback, ErrorCallback? errorCallback) void launchAppControl(ApplicationControl appControl, ApplicationId? id, SuccessCallback? successCallback, ErrorCallback? errorCallback, ApplicationControlDataArrayReplyCallback? replyCallback) void findAppControl(ApplicationControl appControl, FindAppControlSuccessCallback successCallback, ErrorCallback? errorCallback) void getAppsContext(ApplicationContextArraySuccessCallback successCallback, ErrorCallback? errorCallback) ApplicationContext getAppContext(ApplicationContextId? contextId) void getAppsInfo(ApplicationInformationArraySuccessCallback successCallback, ErrorCallback? errorCallback) ApplicationInformation getAppInfo(ApplicationId? id) DOMString getAppSharedURI(ApplicationId? id) ApplicationMetaData[] getAppMetaData(ApplicationId? id) long addAppInfoEventListener(ApplicationInformationEventCallback eventCallback) void removeAppInfoEventListener(long watchId) |
Application | void exit() void hide() RequestedApplicationControl getRequestedAppControl() |
ApplicationInformation | |
ApplicationContext | |
ApplicationControlData | |
ApplicationControl | |
RequestedApplicationControl | void replyResult(ApplicationControlData[]? data) void replyFailure() |
ApplicationMetaData | |
ApplicationInformationArraySuccessCallback | void onsuccess(ApplicationInformation[] informationArray) |
FindAppControlSuccessCallback | void onsuccess(ApplicationInformation[] informationArray, ApplicationControl appControl) |
ApplicationContextArraySuccessCallback | void onsuccess(ApplicationContext[] contexts) |
ApplicationControlDataArrayReplyCallback | void onsuccess(ApplicationControlData[]? data) void onfailure() |
ApplicationInformationEventCallback | void oninstalled(ApplicationInformation info) void onupdated(ApplicationInformation info) void onuninstalled(ApplicationId id) |
The unique ID for an installed application.
typedef DOMString ApplicationId;
The unique ID for a running application.
typedef DOMString ApplicationContextId;
This interface defines what is instantiated by the WebAPIs object by the platform.
[NoInterfaceObject] interface ApplicationManagerObject { readonly attribute ApplicationManager application; };
WebAPIs implements ApplicationManagerObject;
There will be a webapis.application object that allows access to Application API functionality.
This section defines the application manager interface.
[NoInterfaceObject] interface ApplicationManager { Application getCurrentApplication() raises(WebAPIException); void launch(ApplicationId id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); void launchAppControl(ApplicationControl appControl, optional ApplicationId? id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback, optional ApplicationControlDataArrayReplyCallback? replyCallback) raises(WebAPIException); void findAppControl(ApplicationControl appControl, FindAppControlSuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); void getAppsContext(ApplicationContextArraySuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); ApplicationContext getAppContext(optional ApplicationContextId? contextId) raises(WebAPIException); void getAppsInfo(ApplicationInformationArraySuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); ApplicationInformation getAppInfo(optional ApplicationId? id) raises(WebAPIException); DOMString getAppSharedURI(optional ApplicationId? id) raises(WebAPIException); ApplicationMetaData[] getAppMetaData(optional ApplicationId? id) raises(WebAPIException); long addAppInfoEventListener(ApplicationInformationEventCallback eventCallback) raises(WebAPIException); void removeAppInfoEventListener(long watchId) raises(WebAPIException); };
getCurrentApplication
Gets the Application object defining the current application.
Application getCurrentApplication();
with error type UnknownError, if the application cannot be retrieved because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
var app = webapis.application.getCurrentApplication(); console.log("Current application's app id is " + app.appInfo.id);
launch
Launches an application with the given application ID.
void launch(ApplicationId id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback);
The ErrorCallback() is launched with these error types:
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
function onsuccess() { console.log("The application has launched successfully"); } // let's assume that application "targetApp0.main" has been installed webapis.application.launch("targetApp0.main", onsuccess);
launchAppControl
Launches an application with the specified application control.
void launchAppControl(ApplicationControl appControl, optional ApplicationId? id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback, optional ApplicationControlDataArrayReplyCallback? replyCallback);
An application can launch other applications with the application control, and get back the results from the launched applications.
The application control consists of an operation, URI, and MIME type, and describes the request to be performed by the newly launched application. The application control is passed to the launchAppControl() method to launch an application. The system tries to find the proper application to perform the requested application control, then launches the selected application.
The application control request is passed to the newly launched application and it can be accessed by getRequestedAppControl() method. The passed application control contains the reason the application was launched and information about what the application is doing. The launched application can send a result to the caller application with the replyResult() method of RequestedApplicationControl interface.
The ErrorCallback() is launched with these error types:
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appControl = new webapis.ApplicationControl( "http://samsungapps.com/appcontrol/operation/pick", null, "image/jpeg", null); var appControlReplyCallback = { // callee sent a reply onsuccess: function(data) { for (var i = 0; i < data.length; i++) { if (data[i].key == "http://samsungapps.com/appcontrol/data/selected") { console.log('Selected image is ' + data[i].value[0]); } } }, // callee returned failure onfailure: function() { console.log('The launch application control failed'); } } webapis.application.launchAppControl( appControl, null, function() {console.log("launch application control succeed"); }, function(e) {console.log("launch application control failed. reason: " + e.message); }, appControlReplyCallback );
findAppControl
Finds application information can be launched with the given application control.
void findAppControl(ApplicationControl appControl, FindAppControlSuccessCallback successCallback, optional ErrorCallback? errorCallback);
An application can get a list of other applications can be launched with the application control.
The ErrorCallback() is launched with these error types:
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appControl = new webapis.ApplicationControl( "http://samsungapps.com/appcontrol/operation/pick", null, "image/jpeg", null); function successCB(appInfos, appControl) { // em>appControl/em> is same object with the value passed as first parameter to em>findAppControl()/em> var appControlReplyCallback = { // callee sent a reply onsuccess: function(data) { for (var i = 0; i < data.length; i++) { if (data[i].key == "http://samsungapps.com/appcontrol/data/selected") { console.log('Selected image is ' + data[i].value[0]); } } }, // callee returned failure onfailure: function() { console.log('The launch application control failed'); } } var appId = appInfos[0].id; // select first app's id webapis.application.launchAppControl( appControl, appId, function() {console.log("launch application control succeed"); }, function(e) {console.log("launch application control failed. reason: " + e.message); }, appControlReplyCallback ); } webapis.application.findAppControl(appControl, successCB);
getAppsContext
Gets a list of application contexts for applications that are currently running on a device. The information contained for each application corresponds to the application state at the time when the list was generated.
void getAppsContext(ApplicationContextArraySuccessCallback successCallback, optional ErrorCallback? errorCallback);
The errorCallback() is launched with this error type:
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
function onRunningAppsContext(contexts) { for (var i = 0; i < contexts.length; i++) console.log("ID : " + contexts[i].id); } webapis.application.getAppsContext(onRunningAppsContext);
getAppContext
Gets the application context for the specified application context ID. If the ID is set to null or is not set at all, the method returns the application context of the current application. The list of running applications and their application IDs is obtained with getAppsContext().
ApplicationContext getAppContext(optional ApplicationContextId? contextId);
with error type UnknownError, if the application context cannot be retrieved because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type NotFoundError, if the application context is not found with provided ID.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appContext = webapis.application.getAppContext(null); console.log("Application context retrieved for app " + appContext.appId);
getAppsInfo
Gets the list of installed application's information on a device. The information contained on each application corresponds to the application state at the moment when the list was generated.
void getAppsInfo(ApplicationInformationArraySuccessCallback successCallback, optional ErrorCallback? errorCallback);
The errorCallback() is launched with this error type:
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appContext = webapis.application.getAppContext(null); console.log("Application context retrieved for app " + appContext.appId);
getAppInfo
Gets application information for a specified application ID.
ApplicationInformation getAppInfo(optional ApplicationId? id);
If the ID is set to null or not set at all, it returns application information for the current application. The list of installed applications and their application IDs is obtained with getAppsInfo().
with error type UnknownError, if the application cannot be retrieved because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type NotFoundError, if the application is not found with specified ID.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appInfo = webapis.application.getAppInfo(null); console.log("Current application name : " + appInfo.name);
DOMString getAppSharedURI(optional ApplicationId? id);
getAppMetaData
ApplicationMetaData[] getAppMetaData(optional ApplicationId? id);
addAppInfoEventListener
Adds a listener for receiving any notification for changes in the list of the installed applications on a device.
long addAppInfoEventListener(ApplicationInformationEventCallback eventCallback);
It install a callback that is triggered every time a change occurs on the list of installed applications on a device. This change may be occurred by a new installation, uninstallation, or update of an application.
When executed, the implementation must immediately return a listener ID that identifies the listener. After returning the ID, the change detection operation is started asynchronously.
The ApplicationInformationEventCallback must be invoked every time a new application is installed, removed, or updated.
The change detection must continue until the removeAppInfoEventListener() method is called with the corresponding listener identifier.
with error type UnknownError, if fails to add listener because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
var appEventCallback = { oninstalled: function(appInfo) { console.log('The application ' + appInfo.name + ' is installed'); }, onupdated: function(appInfo) { console.log('The application ' + appInfo.name + ' is updated'); }, onuninstalled: function(appid) { console.log('The application ' + appid + ' is uninstalled'); } }; var watchId = webapis.application.addAppInfoEventListener(appEventCallback);
removeAppInfoEventListener
Removes the listener to stop receiving notifications for changes on the list of installed applications on a device.
void removeAppInfoEventListener(long watchId);
with error type UnknownError, if fails to remove listener because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type NotFoundError, if the listener is not found with specified ID.
with error type InvalidValuesError, if any of the input parameters contain an invalid value.
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
webapis.application.removeAppInfoEventListener(watchId);
This interface defines the current application's information and the basic operations (such as exit or hide) for the current application .
[NoInterfaceObject] interface Application { readonly attribute ApplicationInformation appInfo; readonly attribute ApplicationContextId contextId; void exit() raises(WebAPIException); void hide() raises(WebAPIException); RequestedApplicationControl getRequestedAppControl() raises(WebAPIException); };
readonly
ApplicationInformation appInfo
An attribute to store the application information for the current application.
readonly
ApplicationContextId contextId
An attribute to store the ID of a running application.
exit
Exits the current application.
void exit();
with error type UnknownError, if any other error occurs.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
var app = webapis.application.getCurrentApplication(); app.exit();
hide
Hides the current application.
void hide();
with error type UnknownError, if any other error occurs.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
var app = webapis.application.getCurrentApplication(); app.hide();
getRequestedAppControl
Gets the requested application control passed to the current application.
RequestedApplicationControl getRequestedAppControl();
Gets the requested application control that contains the application control passed by the launchAppControl() method from the calling application. The requested application control contains the reason the application was launched and what it has to perform. For example, an application might be launched to display an image on a page by other application's request. In all of these cases, the application is responsible for checking the contents of the application control and responding appropriately when it is launched.
with error type UnknownError, if the application control cannot be retrieved because of an unknown error.
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
var reqAppControl = webapis.application.getCurrentApplication().getRequestedAppControl(); if (reqAppControl) { console.log("Requester AppID : " + reqAppControl.callerAppId); }
This interface defines the general information available to an installed application.
[NoInterfaceObject] interface ApplicationInformation { readonly attribute ApplicationId id; readonly attribute DOMString name; readonly attribute DOMString iconPath; readonly attribute DOMString version; readonly attribute boolean show; readonly attribute DOMString[] categories; readonly attribute Date installDate; readonly attribute long size; };
readonly
ApplicationId id
An attribute to store the identifier of an application for application management.
readonly
DOMString name
An attribute to store the name of an application.
readonly
DOMString iconPath
An attribute to store the icon path of an application.
readonly
DOMString version
An attribute to store the version of an application.
readonly
boolean show
An attribute that determines whether the application information should be shown (such as in the menus) or not.
readonly
DOMString[] categories
An array of attributes to store the categories that the app belongs to.
readonly
Date installDate
An attribute to store the application install/update time.
readonly
long size
An attribute to store the application size (installed space).
This interface defines the information available about a running application.
[NoInterfaceObject] interface ApplicationContext { readonly attribute ApplicationContextId id; readonly attribute ApplicationId appId; };
readonly
ApplicationContextId id
An attribute to store the ID of a running application.
readonly
ApplicationId appId
An attribute to store the ID of an installed application.
This interface defines a key/value pair used to pass data between applications through the ApplicationControl interface.
[Constructor(DOMString key, DOMString[] value)] interface ApplicationControlData { attribute DOMString key; attribute DOMString[] value; };
var appControlData = new webapis.ApplicationControlData("image", [imagedata1]);
DOMString key
An attribute to store the name of a key.
DOMString[] value
An attribute to store the value associated with a key.
This interface consists of an operation, URI, MIME type, and data. It describes an action to be performed by other applications and is passed to launch other applications. If the system gets the application control request, it finds the corresponding application to be launched with the delivered application control and launches the selected application.
[Constructor(DOMString operation, optional DOMString? uri, optional DOMString? mime, optional DOMString? category, optional ApplicationControlData[]? data)] interface ApplicationControl { attribute DOMString operation; attribute DOMString? uri; attribute DOMString? mime; attribute DOMString? category; attribute ApplicationControlData[] data; };
var appControl = new webapis.ApplicationControl( "http://samsungapps.com/appcontrol/operation/view", filePath, "image/jpeg", null, [new webapis.ApplicationControlData("images", [imagedata1, imagedata2])] );
DOMString operation
An attribute to store the string that defines the action to be performed by an application control. This is a platform specific value.
DOMString? uri
An attribute to store the URI needed by application control.
DOMString? mime
An attribute to store the MIME type of a content.
DOMString? category
An attribute to store the category of the application to be launched.
ApplicationControlData[] data
An array of attributes to store the data needed for an application control.
This interface has an application control information requested and passed from other application and is passed to launch other applications. The newly launched application can get the requested application control through getRequestedAppControl() method, and send the results to the calling application through the replyResult() method after performing the required action requested the calling application.
[NoInterfaceObject] interface RequestedApplicationControl { readonly attribute ApplicationControl appControl; readonly attribute ApplicationId callerAppId; void replyResult(optional ApplicationControlData[]? data) raises(WebAPIException); void replyFailure() raises(WebAPIException); };
var reqAppControl = webapis.application.getCurrentApplication().getRequestedAppControl(); if (reqAppControl) { console.log("Requester AppID : " + reqAppControl.callerAppId); var appControl = reqAppControl.appControl; if (appControl.operation == "http://samsungapps.com/appcontrol/operation/pick") { var data = new webapis.ApplicationControlData("http://samsungapps.com/appcontrol/data/selected", ["Image1.jpg"]); reqAppControl.replyResult([data]); } }
readonly
ApplicationControl appControl
An attribute to store the application control object that describes caller application's request. It contains the information that the calling application passed to launchAppControl.
readonly
ApplicationId callerAppId
An attribute to store the caller application's ID
replyResult
Sends the results to the caller application.
void replyResult(optional ApplicationControlData[]? data);
with error type UnknownError, if the reply request fails because of an unknown error
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type NotFoundError, if the caller app is not alive or there is no response from the caller app
with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
replyFailure
Notifies the calling application that the application failed to perform the requested action.
void replyFailure();
with error type UnknownError, if the reply request fails because of an unknown error
with error type NotSupportedError, if this feature is not supported.
with error type SecurityError, if the functionality is not allowed.
with error type NotFoundError, if the caller app is not alive or there is no response from the caller app
This interface defines the meta data of an installed application.
[NoInterfaceObject] interface ApplicationMetaData { readonly attribute DOMString key; readonly attribute DOMString value; };
This interface invokes the success callback that is invoked when the installed application list is retrieved.
[Callback=FunctionOnly, NoInterfaceObject] interface ApplicationInformationArraySuccessCallback { void onsuccess(ApplicationInformation[] informationArray); };
This callback interface specifies a success method with an array of ApplicationInformation objects as an input parameter. It is used in ApplicationManager.getAppsInfo().
onsuccess
Called when the asynchronous call completes successfully.
void onsuccess(ApplicationInformation[] informationArray);
This interface specified a success callback that is invoked when system finished searching applications which is matched by specific application control .
[Callback=FunctionOnly, NoInterfaceObject] interface FindAppControlSuccessCallback { void onsuccess(ApplicationInformation[] informationArray, ApplicationControl appControl); };
This callback interface specifies a success method with an array of ApplicationInformation objects and application control as an input parameter. It is used in ApplicationManager.findAppControl().
onsuccess
Called when the asynchronous call completes successfully.
void onsuccess(ApplicationInformation[] informationArray, ApplicationControl appControl);
This callback interface that specifies the success callback that is invoked when the list of running applications is retrieved.
[Callback=FunctionOnly, NoInterfaceObject] interface ApplicationContextArraySuccessCallback { void onsuccess(ApplicationContext[] contexts); };
This callback interface specifies a success method with an array of ApplicationContext objects as an input parameter. It is used in ApplicationManager.getAppsContext().
onsuccess
Called when ApplicationManager.getAppsContext() completes successfully.
void onsuccess(ApplicationContext[] contexts);
This callback interface specifies success callbacks that are invoked as a reply from the requested application control within the application control requester.
[Callback, NoInterfaceObject] interface ApplicationControlDataArrayReplyCallback { void onsuccess(optional ApplicationControlData[]? data); void onfailure(); };
This callback interface specifies two methods:
onsuccess
Called when the callee application calls RequestedApplicationControl.replyResult().
void onsuccess(optional ApplicationControlData[]? data);
onfailure
Called when the callee application calls RequestedApplicationControl.replyFailure().
void onfailure();
The callback interface to specify for subscribing for notification of changes in the list of installed applications on a device.
[Callback, NoInterfaceObject] interface ApplicationInformationEventCallback { void oninstalled(ApplicationInformation info); void onupdated(ApplicationInformation info); void onuninstalled(ApplicationId id); };
This callback interface specifies methods that will be invoked when an application is installed, updated, or uninstalled.
oninstalled
Called when an application is installed.
void oninstalled(ApplicationInformation info);
onupdated
Called when an application is updated.
void onupdated(ApplicationInformation info);
onuninstalled
Called when an application is uninstalled.
void onuninstalled(ApplicationId id);
module Application { typedef DOMString ApplicationId; typedef DOMString ApplicationContextId; [NoInterfaceObject] interface ApplicationManagerObject { readonly attribute ApplicationManager application; }; WebAPIs implements ApplicationManagerObject; [NoInterfaceObject] interface ApplicationManager { Application getCurrentApplication() raises(WebAPIException); void launch(ApplicationId id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); void launchAppControl(ApplicationControl appControl, optional ApplicationId? id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback, optional ApplicationControlDataArrayReplyCallback? replyCallback) raises(WebAPIException); void findAppControl(ApplicationControl appControl, FindAppControlSuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); void getAppsContext(ApplicationContextArraySuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); ApplicationContext getAppContext(optional ApplicationContextId? contextId) raises(WebAPIException); void getAppsInfo(ApplicationInformationArraySuccessCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException); ApplicationInformation getAppInfo(optional ApplicationId? id) raises(WebAPIException); DOMString getAppSharedURI(optional ApplicationId? id) raises(WebAPIException); ApplicationMetaData[] getAppMetaData(optional ApplicationId? id) raises(WebAPIException); long addAppInfoEventListener(ApplicationInformationEventCallback eventCallback) raises(WebAPIException); void removeAppInfoEventListener(long watchId) raises(WebAPIException); }; [NoInterfaceObject] interface Application { readonly attribute ApplicationInformation appInfo; readonly attribute ApplicationContextId contextId; void exit() raises(WebAPIException); void hide() raises(WebAPIException); RequestedApplicationControl getRequestedAppControl() raises(WebAPIException); }; [NoInterfaceObject] interface ApplicationInformation { readonly attribute ApplicationId id; readonly attribute DOMString name; readonly attribute DOMString iconPath; readonly attribute DOMString version; readonly attribute boolean show; readonly attribute DOMString[] categories; readonly attribute Date installDate; readonly attribute long size; }; [NoInterfaceObject] interface ApplicationContext { readonly attribute ApplicationContextId id; readonly attribute ApplicationId appId; }; [Constructor(DOMString key, DOMString[] value)] interface ApplicationControlData { attribute DOMString key; attribute DOMString[] value; }; [Constructor(DOMString operation, optional DOMString? uri, optional DOMString? mime, optional DOMString? category, optional ApplicationControlData[]? data)] interface ApplicationControl { attribute DOMString operation; attribute DOMString? uri; attribute DOMString? mime; attribute DOMString? category; attribute ApplicationControlData[] data; }; [NoInterfaceObject] interface RequestedApplicationControl { readonly attribute ApplicationControl appControl; readonly attribute ApplicationId callerAppId; void replyResult(optional ApplicationControlData[]? data) raises(WebAPIException); void replyFailure() raises(WebAPIException); }; [NoInterfaceObject] interface ApplicationMetaData { readonly attribute DOMString key; readonly attribute DOMString value; }; [Callback=FunctionOnly, NoInterfaceObject] interface ApplicationInformationArraySuccessCallback { void onsuccess(ApplicationInformation[] informationArray); }; [Callback=FunctionOnly, NoInterfaceObject] interface FindAppControlSuccessCallback { void onsuccess(ApplicationInformation[] informationArray, ApplicationControl appControl); }; [Callback=FunctionOnly, NoInterfaceObject] interface ApplicationContextArraySuccessCallback { void onsuccess(ApplicationContext[] contexts); }; [Callback, NoInterfaceObject] interface ApplicationControlDataArrayReplyCallback { void onsuccess(optional ApplicationControlData[]? data); void onfailure(); }; [Callback, NoInterfaceObject] interface ApplicationInformationEventCallback { void oninstalled(ApplicationInformation info); void onupdated(ApplicationInformation info); void onuninstalled(ApplicationId id); }; };