Package com.unitech.api.uapps
Class ElauncherCtrl
- java.lang.Object
-
- com.unitech.api.uapps.ElauncherCtrl
-
public class ElauncherCtrl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLE_ERROR_CODEstatic java.lang.StringBUNDLE_ERROR_MSGstatic intRESULT_CODE_ERRORstatic intRESULT_CODE_SUCCESS
-
Constructor Summary
Constructors Constructor Description ElauncherCtrl(android.content.Context context)Instantiates a new ElauncherCtrl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.os.BundlesetEnabled(boolean enabled)Set Elanucher Enable, press home key , it will show Kiosk mode.android.os.BundlesetKioskApp(java.lang.String pkg)Set KioskApp with Package Nameandroid.os.BundlesetLauncherAppList(java.lang.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.BundlesetPINCode(java.lang.String PIN)Set PIN Codeandroid.os.BundlesetWallpaper(java.lang.String path)Set Wall paper with file path
-
-
-
Field Detail
-
BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_CODE
- See Also:
- Constant Field Values
-
BUNDLE_ERROR_MSG
public static final java.lang.String BUNDLE_ERROR_MSG
- See Also:
- Constant Field Values
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR
- See Also:
- Constant Field Values
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setKioskApp
public android.os.Bundle setKioskApp(java.lang.String pkg)
Set KioskApp with Package Name- Parameters:
pkg- Package Name (String)- Returns:
- A bundle contains the error code and message
int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setLauncherAppList
public android.os.Bundle setLauncherAppList(java.lang.String apps)
Set Kiosk Mode App List, separate use ','.- Parameters:
apps- app_label_1,app_label_2,app_label_3,... (String)- Returns:
- A bundle contains the error code and message
int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setWallpaper
public android.os.Bundle setWallpaper(java.lang.String path)
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
public android.os.Bundle setPINCode(java.lang.String PIN)
Set PIN Code- Parameters:
PIN- the pin code (String)- Returns:
- A bundle contains the error code and message
int erroeCode = 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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
-