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} )undefined
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
Returns
- undefined
fetchAppRootPathFunction
fetchAppRootPath( )String
Fetches the full root URI (path) of the caller app.
Returns
- String
App's URI (application install path)
platformBackFunction
platformBack( )undefined
Emulate the remote back key.
Returns
- undefined
Type Definitions
appInfoCallbackFunction
ArrayBooleanFunctionModuleNumberObjectString