addResultHandler

Registers result handler which will be notified about barcode/QR code scanning results.

Results are coming on the worker thread. Don't forget to move execution to main thread before updating UI.

Parameters

handler

handler to register. Must not be null. If handler was already registered, nothing happens.