Package com.unitech.api.uapps
Class RFID2KeyCtrl
java.lang.Object
com.unitech.api.uapps.RFID2KeyCtrl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBundleexportSettings(String filePath) Export SettingsBundleimportSettings(String filePath, String passCode) Import settings.BundleresetSettings(String passCode) Reset settingsBundleSet Mode
-
Constructor Details
-
RFID2KeyCtrl
public RFID2KeyCtrl(Context context) Instantiates a new RFID2KeyCtrl.- Parameters:
context-
-
-
Method Details
-
importSettings
Import settings.- Parameters:
filePath- the complete file path. e.g. /sdcard/r2k.confpassCode- 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
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
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
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");
-