webos/application
Provides a collection of functions for fetching application metadata.
Members
Section titled “Members ”fetchAppId Function
Section titled “fetchAppId   Function ”fetchAppId( ) → StringFetches the appID of the caller app.
0 Params
Returns
- String
AppID of the app
fetchAppInfo Function
Section titled “fetchAppInfo   Function ”fetchAppInfo( callback, {path} ) → undefinedFetches 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 Function
Section titled “fetchAppRootPath   Function ”fetchAppRootPath( ) → StringFetches the full root URI (path) of the caller app.
0 Params
Returns
- String
App's URI (application install path)
platformBack Function
Section titled “platformBack   Function ”platformBack( ) → undefinedEmulate the remote back key.
0 Params
Returns
- undefined
Type Definitions
Section titled “Type Definitions ”appInfoCallback Function
Section titled “appInfoCallback   Function ”appInfoCallback(info)
Section titled “appInfoCallback(info)”The callback signature for fetchAppInfo
1 Param
- info any
JSON data object read from the app's appinfo.json file.
undefinedif not found.