Package com.digimarc.dms.readers.audio
Class AudioCaptureReader.Builder
java.lang.Object
com.digimarc.dms.readers.audio.AudioCaptureReader.Builder
- Enclosing class:
- AudioCaptureReader
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a reader using the settings specified.setReaderOptions
(ReaderOptions options) Set of options that this reader will use.setResultListener
(ResultListener listener) Set a listener that will receive detection and error result callbacks for this reader.setSymbologies
(int symbologyMask) Set the symbologies that this reader will detect.
-
Method Details
-
setSymbologies
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
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
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 ReaderExceptionBuild 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 inBaseReader.AudioSymbology
) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.
-