Package com.unitech.api.scanner
Class ScannerCtrl
java.lang.Object
com.unitech.api.scanner.ScannerCtrl
The type Scanner ctrl.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScannerCtrl(android.content.Context context) Instantiates a new Scanner ctrl. -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleexportEaSeriesSettings(String filePath) Export ea series settings.android.os.BundleexportSettings(String folderPath) Export settings.android.os.BundleexportUSSProfile(String folderPath) Export All USS Profile setting to assign folderandroid.os.BundleimportEaSeriesSettings(String filePath) Import ea series settings.android.os.BundleimportSettings(String folderPath) Import settings.android.os.BundleimportUSSProfile(String filePath) Import USS Profile setting with a file.android.os.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(android.content.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 android.os.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");
-