Class StageGoCtrl

java.lang.Object
com.unitech.api.uapps.StageGoCtrl

public class StageGoCtrl extends Object
  • Field Details

  • Constructor Details

    • StageGoCtrl

      public StageGoCtrl(android.content.Context context)
      Instantiates a new StageGoCtrl.
      Parameters:
      context -
  • Method Details

    • setReportPath

      public android.os.Bundle setReportPath(String filepath)
      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

      public android.os.Bundle setBootupScript(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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • setPasscode

      public android.os.Bundle setPasscode(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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • setScanMode

      public android.os.Bundle setScanMode(String scanMode)
      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

      public android.os.Bundle loadAndRunScript(String filepath, int timeout)
      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.