Class ScannerCtrl

java.lang.Object
com.unitech.api.scanner.ScannerCtrl

public class ScannerCtrl extends Object
The type Scanner ctrl.
  • Field Details

  • Constructor Details

    • ScannerCtrl

      public ScannerCtrl(Context context)
      Instantiates a new Scanner ctrl.
      Parameters:
      context - the context
  • Method Details

    • importSettings

      public Bundle importSettings(String folderPath)
      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

      public Bundle exportSettings(String folderPath)
      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

      public Bundle importEaSeriesSettings(String filePath)
      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

      public Bundle exportEaSeriesSettings(String filePath)
      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

      public Bundle importUSSProfile(String filePath)
      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

      public Bundle exportUSSProfile(String folderPath)
      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");