Class KeypadCtrl

java.lang.Object
com.unitech.api.keypad.KeypadCtrl

public class KeypadCtrl extends Object
The type General ctrl.
  • Field Details

  • Constructor Details

    • KeypadCtrl

      public KeypadCtrl(android.content.Context context)
      Instantiates a new Keypad ctrl.
      Parameters:
      context - the context
  • Method Details

    • setSound

      public android.os.Bundle setSound(boolean enable)
      Set keypad sound enable mode.
      Parameters:
      enable - the keypad sound, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getSound

      public android.os.Bundle getSound()
      Get keypad sound enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setVibration

      public android.os.Bundle setVibration(boolean enable)
      Set keypad vibration enable mode.
      Parameters:
      enable - the keypad vibration, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getVibration

      public android.os.Bundle getVibration()
      Get keypad vibration enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setBacklight

      public android.os.Bundle setBacklight(boolean enable)
      Set keypad backlight enable mode.
      Parameters:
      enable - the keypad backlight, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getBacklight

      public android.os.Bundle getBacklight()
      Get keypad backlight enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setMode

      public android.os.Bundle setMode(int mode)
      Set keypad mode.
      Parameters:
      mode - the keypad mode, "0:numeric mode, 2:function mode"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getMode

      public android.os.Bundle getMode()
      Get keypad mode setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int mode = bundle.getInt("mode"); (0:numeric mode, 2:function mode)
    • setFunctionMode

      public android.os.Bundle setFunctionMode(boolean enable)
      Set keypad function mode enable.
      Parameters:
      enable - the keypad function mode, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getFunctionMode

      public android.os.Bundle getFunctionMode()
      Get keypad function mode enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setFunctionKey

      public android.os.Bundle setFunctionKey(boolean enable)
      Set keypad function key enable.
      Parameters:
      enable - the keypad function key, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getFunctionKey

      public android.os.Bundle getFunctionKey()
      Get keypad function key enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setAlphaMode

      public android.os.Bundle setAlphaMode(boolean enable)
      Set keypad alpha mode enable
      Parameters:
      enable - the keypad alpha mode, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getAlphaMode

      public android.os.Bundle getAlphaMode()
      Get keypad alpha mode enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)
    • setAlphaKey

      public android.os.Bundle setAlphaKey(boolean enable)
      Set keypad alpha key enable
      Parameters:
      enable - the keypad alpha key, "false:disable, true:enable"
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • getAlphaKey

      public android.os.Bundle getAlphaKey()
      Get keypad alpha key enable setting.
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
      int enable = bundle.getInt("enable"); (0:false, 1:true)