Class AudioCaptureReader.Builder

java.lang.Object
com.digimarc.dms.readers.audio.AudioCaptureReader.Builder
Enclosing class:
AudioCaptureReader

public static class AudioCaptureReader.Builder extends Object
  • Constructor Details

    • Builder

      protected Builder(SdkSession sdkSession)
      Builder's constructor
      Parameters:
      sdkSession - SdkSession object initialized with a valid license key.
  • Method Details

    • setSymbologies

      @NonNull public AudioCaptureReader.Builder setSymbologies(int symbologyMask)
      Set the symbologies that this reader will detect.
      Parameters:
      symbologyMask - A bitmask value containing the audio symbologies that the reader should use.
      Returns:
      Builder
    • setReaderOptions

      @NonNull public AudioCaptureReader.Builder setReaderOptions(@Nullable ReaderOptions options)
      Set of options that this reader will use.
      Parameters:
      options - A dictionary of flags and settings for the reader. The available entries are documented separately.
      Returns:
      Builder
    • setResultListener

      @NonNull public AudioCaptureReader.Builder setResultListener(@NonNull ResultListener listener)
      Set a listener that will receive detection and error result callbacks for this reader. A Listener is required in order to construct a AudioCaptureReader.
      Parameters:
      listener - Listener for receiving reader callbacks.
      Returns:
      Builder
    • build

      @RequiresPermission("android.permission.RECORD_AUDIO") @NonNull public AudioCaptureReader build() throws ReaderException
      Build a reader using the settings specified.
      Returns:
      A new reader object
      Throws:
      ReaderException - An exception will be thrown if an invalid symbology (i.e. not in BaseReader.AudioSymbology) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.