webos/application

Provides a collection of functions for fetching application metadata.

import application from '@enact/webos/application';

Members

fetchAppIdFunction

fetchAppId()String

Fetches the appID of the caller app.

Returns
String

AppID of the app

fetchAppInfoFunction

fetchAppInfo(callback, {path})

Fetches the appinfo.json data of the caller app.

1 or more Params
callback webos/application~appInfoCallback

Called upon completion

path String
optional

Optional relative filepath to a specific appinfo.json to read

fetchAppRootPathFunction

fetchAppRootPath()String

Fetches the full root URI (path) of the caller app.

Returns
String

App's URI (application install path)

platformBackFunction

platformBack()

Emulate the remote back key.

Type Definitions

appInfoCallbackFunction

appInfoCallback(info)

The callback signature for fetchAppInfo

1 Param
info

JSON data object read from the app's appinfo.json file. undefined if not found.

ArrayBooleanFunctionModuleNumberObjectString