enable(...)

enable(val: boolean): this;

By default Zappar shows a live view from the device's camera. This function is used to enable or disable this feed. Disabling the camera feed (when it is not required) may improve performance or reduce battery drain on the device.

The camera feed will be re-enabled automatically when the device returns to scanning mode.

Parameters

Parameter Type Description
val boolean Pass true to enable the camera feed, false to disable it.

Returns

this

zapcode branded_zapcode i