Class RFID2KeyCtrl


  • public class RFID2KeyCtrl
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RFID2KeyCtrl​(android.content.Context context)
      Instantiates a new RFID2KeyCtrl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.os.Bundle exportSettings​(java.lang.String filePath)
      Export Settings
      android.os.Bundle importSettings​(java.lang.String filePath, java.lang.String passCode)
      Import settings.
      android.os.Bundle resetSettings​(java.lang.String passCode)
      Reset settings
      android.os.Bundle setMode​(java.lang.Boolean mode, java.lang.String passCode)
      Set Mode
      • Methods inherited from class java.lang.Object

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

      • RFID2KeyCtrl

        public RFID2KeyCtrl​(android.content.Context context)
        Instantiates a new RFID2KeyCtrl.
        Parameters:
        context -
    • Method Detail

      • importSettings

        public android.os.Bundle importSettings​(java.lang.String filePath,
                                                java.lang.String passCode)
        Import settings.
        Parameters:
        filePath - the complete file path
        passCode - password (if it was no data, it could be empty string).
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg=bundle.getString("errorMsg");
      • exportSettings

        public android.os.Bundle exportSettings​(java.lang.String filePath)
        Export Settings
        Parameters:
        filePath - the complete file path
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg=bundle.getString("errorMsg");
      • resetSettings

        public android.os.Bundle resetSettings​(java.lang.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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0) String errorMsg=bundle.getString("errorMsg");
      • setMode

        public android.os.Bundle setMode​(java.lang.Boolean mode,
                                         java.lang.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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg=bundle.getString("errorMsg");