Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

getCameras

  • getCameras(): Promise<Camera[]>
  • Get a list of cameras (if any) available on the device, a camera access permission is requested to the user the first time this method is called if needed. Subsequent calls return a cached list of cameras.

    Depending on device features and user permissions for camera access, any of the following errors could be the rejected result of the returned promise:

    • UnsupportedBrowserError
    • PermissionDeniedError
    • NotAllowedError
    • NotFoundError
    • AbortError
    • NotReadableError
    • InternalError

    Returns Promise<Camera[]>

    A promise resolving to the array of available Camera objects (could be empty).

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