Package com.unitech.api.uapps
Class ElauncherCtrl
java.lang.Object
com.unitech.api.uapps.ElauncherCtrl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElauncherCtrl(android.content.Context context) Instantiates a new ElauncherCtrl. -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleenableAllowInteractiveNotification(boolean isEnable) Set enableAllowInteractiveNotification.android.os.BundleenableDashboard(boolean isEnable) Set enableDashboard, it will control the dashboard panel show or notandroid.os.BundleenableFloatingNotification(boolean isEnable) Set enableFloatingNotification. allow a floating bubble show on screen when get new Notificationandroid.os.BundleexportSettings(String filePath) Export Settingsandroid.os.BundleimportSettings(String filePath) Import settings.android.os.BundleReset settingsandroid.os.BundlesetBlackPackageList(String packages) Set Black Packages List, separate use ','.android.os.BundlesetDisplayActionTab(boolean isEnable) Set setDisplayActionTab, it will show or not on dashboard panelandroid.os.BundlesetDisplayNotificationTab(boolean isEnable) Set setDisplayNotificationTab, it will show or not on dashboard panelandroid.os.BundlesetDisplaySettingTab(boolean isEnable) Set setDisplaySettingTab. it will show or not on dashboard panelandroid.os.BundlesetDockApps(String apps) Set setDockApps App List, separate use ','.android.os.BundlesetEnabled(boolean enabled) Set Elanucher Enable, press home key , it will show Kiosk mode.android.os.BundlesetKioskApp(String pkg) Set KioskApp with Package Nameandroid.os.BundlesetLauncherAppList(String apps) Set Kiosk Mode App List, separate use ','.android.os.BundlesetMode(int mode) Set KioskApp first, enable KioskApp or not in Kiosk mode.android.os.BundlesetNotificationBubbleDuration(int duration) Set setNotificationBubbleDuration. control the time of floating bubble show on screen duration.android.os.BundlesetPINCode(String PIN) Set PIN Codeandroid.os.BundlesetRecentKeyLock(boolean enabled) Set RecentKeyLock Enable, press Recent key , it won't show recent app list.android.os.BundlesetWallpaper(String path) Set Wall paper with file pathandroid.os.BundlesetWhiteAppActivityList(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(android.content.Context context) Instantiates a new ElauncherCtrl.- Parameters:
context-
-
-
Method Details
-
setEnabled
public android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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 android.os.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");
-