Methods
-
staticENABLE.application.emitDeeplink(config){Object}
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 configObject Name Type Description actionString optional An action name, such as ACTION_VIEW. Application-specific actions should be prefixed with the vendor's package name.
dataString 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.
packageString optional An explicit application package name that limits the components Intent will resolve to.
activityString optional An explicit class name inside of the application package that limits the components Intent will resolve to.
extrasObject optional Key value pair of extended data to the intent in Object format.
flagsObject optional Name Type Description clearTaskboolean 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 objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.INVALID_ARGUMENTor
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 objectObject Name Type Description resultArray.<Object> Returns the following array of objects. When an error occurs the it returns an empty array. Name Type Description app_labelString Display name of application. package_nameString Package name of application. launch_intentObject An intent for Android system to launch a new activity. Name Type Description actionString An action name, such as ACTION_VIEW. Application specific actions should be prefixed with the vendor package name. dataString 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. packageString An explicit application package name that limits the components Intent will resolve to. packageNameString Deprecated, use packageinstead.activityString An explicit class name inside of the application package that limits the components Intent will resolve to. extrasObject Key value pair of extended data to the intent in Object format. in_system_imageBoolean Whether the application is part of system image. status_codeString ENABLE.status.SUCCESSor
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 objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.ERROR -
staticENABLE.application.launchSettingsMenu(){Object}
application.js, line 103 -
Launch the Amino Settings Menu
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.ERROR -
staticENABLE.application.launchSetupWizard(){Object}
application.js, line 92 -
Launch the Amino Setup Wizard
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
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 isBusyboolean Pass
trueto disable the idle timer (e.g., when the app is busy and should not trigger a switch). Passfalseto allow the idle timer to run normally.- Since:
- 1.9.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.INVALID_ARGUMENTor
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 packageNamestring Package name of the app to launch.
- Since:
- 1.9.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.INVALID_ARGUMENTor
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_secnumber Timeout in seconds.
- Since:
- 1.9.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.INVALID_ARGUMENTor
ENABLE.status.ERROR -
staticENABLE.application.terminate(){Object}
application.js, line 80 -
Terminate this Android Application
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.ERROR