C Specification

The XrPassthroughCameraStateANDROID enumeration identifies the different possible states of the passthrough camera.

// Provided by XR_ANDROID_passthrough_camera_state
typedef enum XrPassthroughCameraStateANDROID {
    XR_PASSTHROUGH_CAMERA_STATE_DISABLED_ANDROID = 0,
    XR_PASSTHROUGH_CAMERA_STATE_INITIALIZING_ANDROID = 1,
    XR_PASSTHROUGH_CAMERA_STATE_READY_ANDROID = 2,
    XR_PASSTHROUGH_CAMERA_STATE_ERROR_ANDROID = 3,
    XR_PASSTHROUGH_CAMERA_STATE_MAX_ENUM_ANDROID = 0x7FFFFFFF
} XrPassthroughCameraStateANDROID;

Description

Enum Description

XR_PASSTHROUGH_CAMERA_STATE_DISABLED_ANDROID

The camera has been disabled by an app, the system or the user.

XR_PASSTHROUGH_CAMERA_STATE_INITIALIZING_ANDROID

The camera is still coming online and not yet ready to use. The runtime may render a black background where the passthrough video is supposed to appear.

XR_PASSTHROUGH_CAMERA_STATE_READY_ANDROID

The camera is ready to use.

XR_PASSTHROUGH_CAMERA_STATE_ERROR_ANDROID

The camera is in an unrecoverable error state.

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.