Class MbScan


  • public class MbScan
    extends androidx.activity.result.contract.ActivityResultContract<UISettings,​ScanResult>
    The Activity Result API's contract to launch scanning by using the provided UISettings.

    Returns the ScanResult.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class androidx.activity.result.contract.ActivityResultContract

        androidx.activity.result.contract.ActivityResultContract.SynchronousResult<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXTRA_SCAN_EXCEPTION
      Key for exception stored in intent when returning result with the Activity.RESULT_CANCELED code.
    • Constructor Summary

      Constructors 
      Constructor Description
      MbScan()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.content.Intent createIntent​(android.content.Context context, UISettings uiSettings)  
      ScanResult parseResult​(int resultCode, android.content.Intent data)  
      • Methods inherited from class androidx.activity.result.contract.ActivityResultContract

        getSynchronousResult
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXTRA_SCAN_EXCEPTION

        public static final java.lang.String EXTRA_SCAN_EXCEPTION
        Key for exception stored in intent when returning result with the Activity.RESULT_CANCELED code.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MbScan

        public MbScan()
    • Method Detail

      • createIntent

        @NonNull
        public android.content.Intent createIntent​(@NonNull
                                                   android.content.Context context,
                                                   UISettings uiSettings)
        Specified by:
        createIntent in class androidx.activity.result.contract.ActivityResultContract<UISettings,​ScanResult>
      • parseResult

        public ScanResult parseResult​(int resultCode,
                                      @Nullable
                                      android.content.Intent data)
        Specified by:
        parseResult in class androidx.activity.result.contract.ActivityResultContract<UISettings,​ScanResult>