Class ElauncherCtrl

java.lang.Object
com.unitech.api.uapps.ElauncherCtrl

public class ElauncherCtrl extends Object
  • Field Details

  • 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

      public Bundle setKioskApp(String pkg)
      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

      public Bundle setLauncherAppList(String apps)
      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

      public Bundle setWallpaper(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 Bundle setPINCode(String PIN)
      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

      public Bundle setBlackPackageList(String packages)
      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

      public Bundle setWhiteAppActivityList(String activities)
      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

      public Bundle exportSettings(String filePath)
      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

      public Bundle importSettings(String filePath)
      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

      public Bundle setDockApps(String apps)
      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

      public Bundle setUrlLaunchShortcutWithBrowser(String shortcutInfo)
      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

      public Bundle setSettingComplianceOrder(String orders)
      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");