Class RFID2KeyCtrl

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

public class RFID2KeyCtrl extends Object
  • Constructor Details

    • RFID2KeyCtrl

      public RFID2KeyCtrl(Context context)
      Instantiates a new RFID2KeyCtrl.
      Parameters:
      context -
  • Method Details

    • importSettings

      public Bundle importSettings(String filePath, String passCode)
      Import settings.
      Parameters:
      filePath - the complete file path. e.g. /sdcard/r2k.conf
      passCode - password (if it was no data, it could be empty string).
      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/r2k.conf
      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(String passCode)
      Reset settings
      Parameters:
      passCode - password (if it was no data, it could be empty 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(Boolean mode, String passCode)
      Set Mode
      Parameters:
      mode - Boolean (RFID mode:true, Scan mode:false)
      passCode - password (if it was no data, it could be empty string).
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg=bundle.getString("errorMsg");