Package com.unitech.api.scanner
Class ScannerCtrl
java.lang.Object
com.unitech.api.scanner.ScannerCtrl
The type Scanner ctrl.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBundleexportEaSeriesSettings(String filePath) Export ea series settings.BundleexportSettings(String folderPath) Export settings.BundleexportUSSProfile(String folderPath) Export All USS Profile setting to assign folderBundleimportEaSeriesSettings(String filePath) Import ea series settings.BundleimportSettings(String folderPath) Import settings.BundleimportUSSProfile(String filePath) Import USS Profile setting with a file.Bundleremove all profiles except “Default” profile, and reset “Default” profile settings
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
ScannerCtrl
public ScannerCtrl(Context context) Instantiates a new Scanner ctrl.- Parameters:
context- the context
-
-
Method Details
-
importSettings
Import settings.- Parameters:
folderPath- the folder path (String) e.g. /sdcard/scanner/- 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:
folderPath- the folder path (String) e.g. /sdcard/scanner/- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
importEaSeriesSettings
Import ea series settings.- Parameters:
filePath- the file path (String) e.g. /sdcard/scanner.conf- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
exportEaSeriesSettings
Export ea series settings.- Parameters:
filePath- the file path (String) e.g. /sdcard/scanner.conf- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
importUSSProfile
Import USS Profile setting with a file.- Parameters:
filePath- the file path (String) e.g. /sdcard/ussprofile.profile- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
exportUSSProfile
Export All USS Profile setting to assign folder- Parameters:
folderPath- the folder path (String) e.g. /sdcard/ussbak/- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
resetUSSProfile
public Bundle resetUSSProfile()remove all profiles except “Default” profile, and reset “Default” profile settings- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-