Deactivate the QRScanner. To balance user-perceived performance and power consumption, this kicks off a countdown which will "sleep" the scanner after a certain amount of time.
The status of QRScanner is passed to the callback when deactivation
is complete.
If camera access has been granted, pre-initialize the QRScanner. This method can be safely called before the scanner is visible to improve perceived scanner loading times.
The status of QRScanner is returned to the callback.
Immediately return known capabilities of the current platform.
Start a new scan.
Switch cameras (if a second camera is available).
The status of QRScanner is passed to the callback when activation
is complete.
Toggle the device light (if available).
The callback receives a boolean which is true if the light is enabled.
(Re)activate the QRScanner, and cancel the timeouts if present.
The
statusof QRScanner is passed to the callback when activation is complete.