Package com.digimarc.dms.readers
Interface ResultListener
public interface ResultListener
ResultListener is used by the capture readers (VideoCaptureReader and AudioCaptureReader) to return
results and errors. A capture reader cannot be created without supplying a result listener instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(BaseReader.ReaderError errorCode, BaseReader.ResultType resultType) This method will be called when an error occurs during reader processing.void
onReaderResult
(ReaderResult result, BaseReader.ResultType resultType) This method will be called when the reader finishes processing a data packet.
-
Method Details
-
onReaderResult
This method will be called when the reader finishes processing a data packet. These callbacks will always occur on the main system (UI) thread.- Parameters:
result
-ReaderResult
containing data returned from the readersresultType
- Type of result.
-
onError
This method will be called when an error occurs during reader processing. These callbacks will always occur on the main system (UI) thread.- Parameters:
errorCode
- An error code.resultType
- Type of result.
-