Namespace: application

ENABLE. application

Methods

application.js, line 65

This is Android System specific. This API will emit a intent with provided parameters.

let config = {
  package: "com.aminocom.browser",
  data: "https://www.google.com",
  extras: { "forceUpdate": true }
};
ENABLE.application.emitDeeplink(config);
Name Type Description
config Object
Name Type Description
action String optional

An action name, such as ACTION_VIEW. Application-specific actions should be prefixed with the vendor's package name.

data String optional

This URI specifies the name of the data; often it uses the content: scheme, specifying data in a content provider. Other schemes may be handled by specific activities, such as http: by the web browser.

package String optional

An explicit application package name that limits the components Intent will resolve to.

activity String optional

An explicit class name inside of the application package that limits the components Intent will resolve to.

extras Object optional

Key value pair of extended data to the intent in Object format.

flags Object optional
Name Type Description
clearTask boolean optional

Default false. This flag will cause any existing task that would be associated with the activity to be cleared before the activity is started.

Since:
  • 1.4.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.INVALID_ARGUMENT or
ENABLE.status.ERROR

staticENABLE.application.getPackageList(){Object}

application.js, line 125

This is Android System specific. Return list of packages installed on STB.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
result Array.<Object> Returns the following array of objects. When an error occurs the it returns an empty array.
Name Type Description
app_label String Display name of application.
package_name String Package name of application.
launch_intent Object An intent for Android system to launch a new activity.
Name Type Description
action String An action name, such as ACTION_VIEW. Application specific actions should be prefixed with the vendor package name.
data String This URI specifies the name of the data; often it uses the content: scheme, specifying data in a content provider. Other schemes may be handled by specific activities, such as http: by the web browser.
package String An explicit application package name that limits the components Intent will resolve to.
packageName String Deprecated, use package instead.
activity String An explicit class name inside of the application package that limits the components Intent will resolve to.
extras Object Key value pair of extended data to the intent in Object format.
in_system_image Boolean Whether the application is part of system image.
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR

staticENABLE.application.launchAndroidSystemSettings(){Object}

application.js, line 35

Launch the Android System Settings Menu.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR

staticENABLE.application.launchSettingsMenu(){Object}

application.js, line 103

Launch the Amino Settings Menu

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR

staticENABLE.application.launchSetupWizard(){Object}

application.js, line 92

Launch the Amino Setup Wizard

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR

staticENABLE.application.setAppSwitchBusy(isBusy){Object}

application.js, line 199

Controls whether the idle timer for app switching is active.
In current implementation, device is not busy when power on.

Name Type Description
isBusy boolean

Pass true to disable the idle timer (e.g., when the app is busy and should not trigger a switch). Pass false to allow the idle timer to run normally.

Since:
  • 1.9.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.INVALID_ARGUMENT or
ENABLE.status.ERROR

staticENABLE.application.setAppSwitchLaunchPackage(packageName){Object}

application.js, line 175

Set the package id to launch when device is idle for a period of time. This overrides the INI app.app_switch.default_launch_package_id
When both timeout and package name are set, the device will launch the specified app after the timeout.

Name Type Description
packageName string

Package name of the app to launch.

Since:
  • 1.9.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.INVALID_ARGUMENT or
ENABLE.status.ERROR

staticENABLE.application.setAppSwitchTimeout(timeout_sec){Object}

application.js, line 151

Set the timeout for device regarding as idle and switching to another app. This overrides the INI app.app_switch.default_timeout_sec
When both timeout and package name are set, the device will launch the specified app after the timeout.

Name Type Description
timeout_sec number

Timeout in seconds.

Since:
  • 1.9.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.INVALID_ARGUMENT or
ENABLE.status.ERROR

staticENABLE.application.terminate(){Object}

application.js, line 80

Terminate this Android Application

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR