Skip to main content

CameraModule.CameraType

Enum

Camera sensor type, reported on CameraModule.CameraInfo#type.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
1 platform note
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
    • Restricted when the Lens uses internet-connected APIs (see Privacy Restrictions).
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported. Restricted when the Lens uses internet-connected APIs (see Privacy Restrictions)

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v368Exposes user data

Camera sensor type, reported on CameraModule.CameraInfo#type.

Index

Enumeration Members

Remarks

CameraModule#getCameras lists the RGB and grayscale cameras.

Enumeration Members

Generic

Generic: number

Exposes user dataSPECS

Unspecified type. Not reported by current cameras.

Since

Lens Scripting Version 368


Grayscale

Grayscale: number

Exposes user dataSPECS

Monochrome camera; images are single-channel luma.

Since

Lens Scripting Version 368


Rgb

Rgb: number

Exposes user dataSPECS

Color camera.

Since

Lens Scripting Version 368