Class ElauncherCtrl

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

public class ElauncherCtrl extends Object
  • Field Details

  • 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

      public android.os.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 android.os.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 android.os.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 android.os.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 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

      public android.os.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 android.os.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 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

      public android.os.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 android.os.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 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

      public android.os.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");