Package com.unitech.api.uapps
Class ElauncherCtrl
java.lang.Object
com.unitech.api.uapps.ElauncherCtrl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBundleenableAllowInteractiveNotification(boolean isEnable) Set enableAllowInteractiveNotification.BundleenableDashboard(boolean isEnable) Set enableDashboard, it will control the dashboard panel show or notBundleenableFloatingNotification(boolean isEnable) Set enableFloatingNotification. allow a floating bubble show on screen when get new NotificationBundleexportSettings(String filePath) Export SettingsBundleimportSettings(String filePath) Import settings.BundleReset settingsBundlesetBlackPackageList(String packages) Set Black Packages List, separate use ','.BundlesetDisplayActionTab(boolean isEnable) Set setDisplayActionTab, it will show or not on dashboard panelBundlesetDisplayNotificationTab(boolean isEnable) Set setDisplayNotificationTab, it will show or not on dashboard panelBundlesetDisplaySettingTab(boolean isEnable) Set setDisplaySettingTab. it will show or not on dashboard panelBundlesetDockApps(String apps) Set setDockApps App List, separate use ','.BundlesetEnabled(boolean enabled) Set Elanucher Enable, press home key , it will show Kiosk mode.BundlesetKioskApp(String pkg) Set KioskApp with Package NameBundlesetLauncherAppList(String apps) Set Kiosk Mode App List, separate use ','.BundlesetMode(int mode) Set KioskApp first, enable KioskApp or not in Kiosk mode.BundlesetNotificationBubbleDuration(int duration) Set setNotificationBubbleDuration. control the time of floating bubble show on screen duration.BundlesetPINCode(String PIN) Set PIN CodeBundlesetRecentKeyLock(boolean enabled) Set RecentKeyLock Enable, press Recent key , it won't show recent app list.BundlesetSettingComplianceEnable(boolean isEnable) Set setSettingComplianceEnable, it will enable ELauncher setting compliance functionBundlesetSettingComplianceOrder(String orders) Set setSettingCompliance 4 orders value, separate use ','.BundlesetUrlLaunchShortcutWithBrowser(String shortcutInfo) Set Url Launch shortcut with Browser info, separate use ','.BundlesetWallpaper(String path) Set Wall paper with file pathBundlesetWhiteAppActivityList(String activities) Set White App Activities (com.xxx.xxx.activityName List, separate use ','.
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
ElauncherCtrl
public ElauncherCtrl(Context context) Instantiates a new ElauncherCtrl.- Parameters:
context-
-
-
Method Details
-
setEnabled
public Bundle setEnabled(boolean enabled) Set Elanucher Enable, press home key , it will show Kiosk mode.- Parameters:
enabled- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setKioskApp
Set KioskApp with Package Name- Parameters:
pkg- Package Name (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setLauncherAppList
Set Kiosk Mode App List, separate use ','.- Parameters:
apps- app_name_1,app_name_2,app_name_3,... (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setWallpaper
Set Wall paper with file path- Parameters:
path- file path (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setPINCode
Set PIN Code- Parameters:
PIN- the pin code (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setMode
public Bundle setMode(int mode) Set KioskApp first, enable KioskApp or not in Kiosk mode.- Parameters:
mode- 0: Launcher mode
1: Kiosk mode (int)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setRecentKeyLock
public Bundle setRecentKeyLock(boolean enabled) Set RecentKeyLock Enable, press Recent key , it won't show recent app list.- Parameters:
enabled- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setBlackPackageList
Set Black Packages List, separate use ','.- Parameters:
packages- pkg_label_1,pkg_label_2,pkg_label_3,... (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setWhiteAppActivityList
Set White App Activities (com.xxx.xxx.activityName List, separate use ','.- Parameters:
activities- act_label_1,act_label_2,act_label_3,... (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
resetSettings
public Bundle resetSettings()Reset settings- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0) String errorMsg=bundle.getString("errorMsg");
-
exportSettings
Export Settings- Parameters:
filePath- the complete file path. e.g. /sdcard/elconf.txt- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
importSettings
Import settings.- Parameters:
filePath- the complete file path. e.g. /sdcard/elconf.txt- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
enableAllowInteractiveNotification
public Bundle enableAllowInteractiveNotification(boolean isEnable) Set enableAllowInteractiveNotification.- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
enableFloatingNotification
public Bundle enableFloatingNotification(boolean isEnable) Set enableFloatingNotification. allow a floating bubble show on screen when get new Notification- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setNotificationBubbleDuration
public Bundle setNotificationBubbleDuration(int duration) Set setNotificationBubbleDuration. control the time of floating bubble show on screen duration.- Parameters:
duration- is an integer, and value range need set in 1~10- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
enableDashboard
public Bundle enableDashboard(boolean isEnable) Set enableDashboard, it will control the dashboard panel show or not- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setDisplayNotificationTab
public Bundle setDisplayNotificationTab(boolean isEnable) Set setDisplayNotificationTab, it will show or not on dashboard panel- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setDisplayActionTab
public Bundle setDisplayActionTab(boolean isEnable) Set setDisplayActionTab, it will show or not on dashboard panel- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setDisplaySettingTab
public Bundle setDisplaySettingTab(boolean isEnable) Set setDisplaySettingTab. it will show or not on dashboard panel- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setDockApps
Set setDockApps App List, separate use ','.- Parameters:
apps- app_label_1/app_pkg_1,app_label_2/app_pkg_2,... (String) max app is 4. e.g. "1/com.unitech.drawable,2/com.unitech.keyremap"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setUrlLaunchShortcutWithBrowser
Set Url Launch shortcut with Browser info, separate use ','.- Parameters:
shortcutInfo- is String SHORTCUT_NAME(must),URL(must),BROWSER_PKG/BROWSER_NAME(option),{ICON_VALUE_BASE64}(option) you can set only must info as {SHORTCUT_NAME(must),URL(must),,} browser will apply with system default browser- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setSettingComplianceEnable
public Bundle setSettingComplianceEnable(boolean isEnable) Set setSettingComplianceEnable, it will enable ELauncher setting compliance function- Parameters:
isEnable- true or false (boolean)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setSettingComplianceOrder
Set setSettingCompliance 4 orders value, separate use ','. one order specify up to 4 storage options- Parameters:
orders- order1,order2,order3,order4 (String) value is: NONE,INTERNAL,FLASH,SD,USB for example {USB,INTERNAL,SD,FLASH} or {USB,INTERNAL,NONE,NONE}- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-