Namespace: app

airlock.app

Provides licensing, updates, versioning, and APIs for exiting the app.
Source:

Methods

(static) exit(showNotificationopt)

Causes the app to exit, and the user to be returned to the home screen.
Parameters:
Name Type Attributes Default Description
showNotification boolean <optional>
true If true, a notification is displayed to the user prior to exit. This helps to prevent the user from assuming the app crashed.
Source:

(static) exitAndLaunchApp(appPackageName, showNotificationopt)

Causes the app to exit, and the specified app package to be launched if present on the system.
Parameters:
Name Type Attributes Default Description
appPackageName string The package name of an app that should be launched after the app exits.
showNotification boolean <optional>
true If true, a notification is displayed to the user prior to exit. This helps to prevent the user from assuming the app crashed. Default is true.
Source:

(static) getVersion() → {airlock.app.AppVersion}

Gets the version of Airlock Browser.
Source:
Returns:
The app version, containing a version name and code.
Type
airlock.app.AppVersion

(static) isLicensed() → {boolean}

Get a value indicating whether the app has a valid license installed.
Source:
Returns:
True if licensed; false otherwise.
Type
boolean

(static) launchApp(packageName)

Launches the app specified by its package name. A valid package name might be, for example, 'com.google.android.apps.photos'. To determine if a package is installed on the device use the airlock.device.isPackageInstalled function.
Parameters:
Name Type Description
packageName string The Android package name of the app to open.
Source:
Throws:
Occurs if the specified packageName cannot be found.
Example
// Launch Google Photos app
airlock.device.launchApp('com.google.android.apps.photos');

(static) minimize()

Sends the user to the Android home screen while minimizing the browser.
Source:

Type Definitions

AppVersion

Properties:
Name Type Description
name string The version name. For example "1.0".
code number The version code which is incremented upon each release. A previous version has a lower version code.
Source: