Options
All
  • Public
  • Public/Protected
  • All
Menu

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.
});

Hierarchy

  • PerceptionToolkitEvents

Index

Properties

CameraAccessDenied

CameraAccessDenied: string

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.

CaptureClosed

CaptureClosed: string

Capture has been closed. Typically at the end of all capturing.

CaptureStarted

CaptureStarted: string

Capture has been started.

CaptureStopped

CaptureStopped: string

Capture has been stopped. This can happen because the user has finished capturing or because they have switched tabs.

DeviceNotSupported

DeviceNotSupported: string

The device does not support all the required APIs.

MarkerDetect

MarkerDetect: string

A marker has been detected. Provides the type and value of the marker.

PerceivedResults

PerceivedResults: string

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.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc