enable(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
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
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | boolean | Pass true to enable the camera feed, false to disable it. |
Returns
Section titled “Returns”this