Type alias DetectionHandlerResult

DetectionHandlerResult: void | boolean | boolean[]

Result type for barcode detection handler.

The handler can either return nothing (in versions prior to 1.12 this was the only option), or a boolean or array of booleans indicating whether the app handled the detections.

Detections that are returned as unhandled (indicate by a false return value) will not be highlighted in the overlay, even if OverlayConfiguration#showDetections is set to true. No audio or vibration feedback will be emitted either.

Remarks

Returning false from the handler does not influence the usage in quota-based plans. All detections are always counted, regardless if they were handled or not.