Skip to content
Enact

webos/application

Provides a collection of functions for fetching application metadata.

fetchAppId(  ) → String

Fetches the appID of the caller app.

0 Params
Returns
 String

AppID of the app

fetchAppInfo( callback, {path} ) → undefined

Fetches the appinfo.json data of the caller app.

2 Params
callback webos/applicationwebos/application~appInfoCallback

Called upon completion

Optional • path String

Optional relative filepath to a specific appinfo.json to read

Returns
 undefined
fetchAppRootPath(  ) → String

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

0 Params
Returns
 String

App's URI (application install path)

platformBack(  ) → undefined

Emulate the remote back key.

0 Params
Returns
 undefined

The callback signature for fetchAppInfo

1 Param
info any

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

Returns