Lens Scripting API

    Class CameraRequestExposes User Data Wearable Only

    An object that is used to request the desired camera ID. It should be passed to the CameraModule to get back a camera texture.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    cameraId: CameraId

    The id of the camera to be accessed.

    imageSmallerDimension?: number

    The desired resolution of the received camera frame. If not specified, will use the system default resolution. It is recommended to use lowest resolution required for your use case to save on power and not overheat the device.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR