Access to the camera has been denied. By default this will show a message
to the user. If you wish to prevent the default behavior you should call
preventDefault()
on the event when dispatched.
Capture has been closed. Typically at the end of all capturing.
Capture has been started.
Capture has been stopped. This can happen because the user has finished capturing or because they have switched tabs.
The device does not support all the required APIs.
A marker has been detected. Provides the type and value of the marker.
Results have changed. This event contains two arrays: lost
and
found
, the contents of which are the results which have been lost or
found respectively.
By default, new found results will have a card generated for them.
If you wish to prevent this default behavior, you should listen for this
event and call preventDefault()
on the event when dispatched.
Generated using TypeDoc
The events dispatched by the Perception Toolkit. You can access these by listening to the events on
window
.const { Events } = window.PerceptionToolkit; window.addEventListener(Events.CameraAccessDenied, () => { // Show message to user. });