InterfaceCameraRequestExperimental Exposes 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.

interface CameraRequest {
    cameraId: CameraId;
    imageSmallerDimension?: number;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

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

  • Experimental

    Returns the name of this object's type.

    Returns string

  • Experimental

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

    Parameters

    • type: string

    Returns boolean

  • Experimental

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

    Parameters

    Returns boolean