Package com.unitech.api.uapps
Class StageGoCtrl
- java.lang.Object
-
- com.unitech.api.uapps.StageGoCtrl
-
public class StageGoCtrl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLE_ERROR_CODEstatic java.lang.StringBUNDLE_ERROR_MSGstatic intRESULT_CODE_ERRORstatic intRESULT_CODE_SUCCESS
-
Constructor Summary
Constructors Constructor Description StageGoCtrl(android.content.Context context)Instantiates a new StageGoCtrl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.os.BundleenabledBootupScript(boolean enabled)android.os.BundlesetBootupScript(java.lang.String filepath)Call StageGO API to set bootup script files listandroid.os.BundlesetPasscode(java.lang.String passcode)StageGO setting, Set Pass Codeandroid.os.BundlesetReportMaxNum(int num)StageGO setting, Set Report max numberandroid.os.BundlesetReportPath(java.lang.String filepath)StageGO setting, Set Report Pathandroid.os.BundlesetScanMode(java.lang.String scanMode)StageGO setting, Set Scan Mode
-
-
-
Field Detail
-
BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_CODE
- See Also:
- Constant Field Values
-
BUNDLE_ERROR_MSG
public static final java.lang.String BUNDLE_ERROR_MSG
- See Also:
- Constant Field Values
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR
- See Also:
- Constant Field Values
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setReportPath
public android.os.Bundle setReportPath(java.lang.String filepath)
StageGO setting, Set Report Path- Parameters:
filepath- file path (String)- Returns:
- A bundle contains the error code and message
int erroeCode = 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 erroeCode = 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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setBootupScript
public android.os.Bundle setBootupScript(java.lang.String filepath)
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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setPasscode
public android.os.Bundle setPasscode(java.lang.String passcode)
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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
setScanMode
public android.os.Bundle setScanMode(java.lang.String scanMode)
StageGO setting, Set Scan Mode- Parameters:
scanMode- CameraMode or ScannerMode (String)- Returns:
- A bundle contains the error code and message
int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
-