Extension qnx.navigator

qnx.navigator

Provide utility functions for the management of applications

Methods

appData

Provide the data object for the specified app
Parameters:
Name Type Description
id String The app ID
data Object The data object

getList

Get the list of webviews
Returns:
An array of webview names
Type
  • Array

init

Initialize the extension and the application's webview
Parameters:
Name Type Description
args Object The dimensions of the webview
Example
{
     x  (left),
     y: (top),
     w: (width),
     h: (height),
}

pause

Trigger the pause event for the specified app
Parameters:
Name Type Description
id String The app ID

reselect

Trigger the reselect event for the specified app
Parameters:
Name Type Description
id String The app ID

resume

Trigger the resume event for the specified app
Parameters:
Name Type Description
id String The app ID

select

Select an application's webview by changing the zorder and visibility
Parameters:
Name Type Description
id Number The webview ID
Returns:
The current and previous webview IDs
Type
  • Object
Example
{
     current: (webviewId),
     previous: (webviewId)
}

set

Set a webview param
Parameters:
Name Type Description
obj Object The webview ID and parameter(s) to set
Example
{
     id (webviewId),
     {
         zorder (value or -value for hidden),
         visible (boolean),
         geometry x:(x), y:(y), w:(w), h:(h)
     }
}

start

Start a new application or load a URL
Parameters:
Name Type Description
args Object The list of params needed to create a webview
Returns:
The webview ID
Type
  • Number
Example
{
     scale: (boolean), //scale the contents to the width and height provided
     x: (left),
     y: (top),
     w: (width),
     h: (height),
     z: (zOrder), // z-order of the webview w.r.t. other webviews in-process
     name: (the application's name),
     id: (the application's Id),
     url: [optional], 
     packageName: [optional], // requires either a URL or a packageName
     outprocess: (boolean) // create the webview in-process or out-of-process
}

stop

Stop an application. This either: a) In the case of a URL the method destroys the webview and removes it from the collection b) In the case of a package the method stops the application, destroys the webview and removes it from the collection
Parameters:
Name Type Description
id Number The webview ID