Class ElauncherCtrl


  • public class ElauncherCtrl
    extends java.lang.Object
    • 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.Bundle setEnabled​(boolean enabled)
      Set Elanucher Enable, press home key , it will show Kiosk mode.
      android.os.Bundle setKioskApp​(java.lang.String pkg)
      Set KioskApp with Package Name
      android.os.Bundle setLauncherAppList​(java.lang.String apps)
      Set Kiosk Mode App List, separate use ','.
      android.os.Bundle setMode​(int mode)
      Set KioskApp first, enable KioskApp or not in Kiosk mode.
      android.os.Bundle setPINCode​(java.lang.String PIN)
      Set PIN Code
      android.os.Bundle setWallpaper​(java.lang.String path)
      Set Wall paper with file path
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElauncherCtrl

        public ElauncherCtrl​(android.content.Context context)
        Instantiates a new ElauncherCtrl.
        Parameters:
        context -
    • 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");