Package com.unitech.api.uapps
Class StageGoCtrl
java.lang.Object
com.unitech.api.uapps.StageGoCtrl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStageGoCtrl(android.content.Context context) Instantiates a new StageGoCtrl. -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleenabledBootupScript(boolean enabled) android.os.BundleloadAndRunScript(String filepath, int timeout) Load and run a StageGO script fileandroid.os.BundlesetBootupScript(String filepath) Call StageGO API to set bootup script files listandroid.os.BundlesetPasscode(String passcode) StageGO setting, Set Pass Codeandroid.os.BundlesetReportMaxNum(int num) StageGO setting, Set Report max numberandroid.os.BundlesetReportPath(String filepath) StageGO setting, Set Report Pathandroid.os.BundlesetScanMode(String scanMode) StageGO setting, Set Scan Mode
-
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
-
StageGoCtrl
public StageGoCtrl(android.content.Context context) Instantiates a new StageGoCtrl.- Parameters:
context-
-
-
Method Details
-
setReportPath
StageGO setting, Set Report Path- Parameters:
filepath- file path (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setReportMaxNum
public android.os.Bundle setReportMaxNum(int num) StageGO setting, Set Report max number- Parameters:
num- number (int)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
enabledBootupScript
public android.os.Bundle enabledBootupScript(boolean enabled) - Parameters:
enabled- (boolean) (true or false)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setBootupScript
Call StageGO API to set bootup script files list- Parameters:
filepath- Files path, separated by "," (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setPasscode
StageGO setting, Set Pass Code- Parameters:
passcode- passcode (String) (press empty data, it will set no password)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setScanMode
StageGO setting, Set Scan Mode- Parameters:
scanMode- CameraMode or ScannerMode (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
loadAndRunScript
Load and run a StageGO script file- Parameters:
filepath- file path (String)timeout- timeout (int), unit is milliseconds. If timeout > 0, it will wait for the result, otherwise, it will return immediately.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
return value cannot be used to determine the success or failure of the StageGO script execution result.
-