Class SafeModeLockCtrl

java.lang.Object
com.unitech.api.safemodelock.SafeModeLockCtrl

public class SafeModeLockCtrl extends Object
Created by USER
  • Field Details

  • Method Details

    • getInstance

      public static SafeModeLockCtrl getInstance(Context context)
    • isSafeModeLockEnabled

      public Bundle isSafeModeLockEnabled()
      Check whether SafeMode is being locked or not
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (1: safemodeLock not enable, 0: safemodeLock enable)
      String errorMsg = bundle.getString("errorMsg");
    • getLauncherPackageName

      public Bundle getLauncherPackageName()
      Check SafeModeLock bind with which packageName
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (1: fail, 0: success)
      String errorMsg = bundle.getString("errorMsg");
      String packageName = bundle.getString("packageName");
    • setSafeModeLock

      public Bundle setSafeModeLock(boolean enabled, String launcherPackageName)
      Set SafeMode Lock
      Parameters:
      enabled - true or false (boolean)
      launcherPackageName - Lancher PackageName (String) (If it set empty, it will clean default lancher setting.)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg=bundle.getString("errorMsg");
    • setSafeModeLock

      public Bundle setSafeModeLock(boolean enabled, String launcherPackageName, String password)
      Set SafeMode Lock
      Parameters:
      enabled - true or false (boolean)
      launcherPackageName - Lancher PackageName (String) (If it set empty, it will clean default lancher setting.)
      password - password (String)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg=bundle.getString("errorMsg");