C Specification

// Provided by XR_EXT_interaction_profile_battery_state_display
// Flag bits for XrBatteryStateDisplayStateFlagsEXT
static const XrBatteryStateDisplayStateFlagsEXT XR_BATTERY_STATE_DISPLAY_STATE_VALID_BIT_EXT = 0x00000001;
static const XrBatteryStateDisplayStateFlagsEXT XR_BATTERY_STATE_DISPLAY_STATE_CHARGING_BIT_EXT = 0x00000002;
static const XrBatteryStateDisplayStateFlagsEXT XR_BATTERY_STATE_DISPLAY_STATE_PLUGGED_IN_BIT_EXT = 0x00000004;
static const XrBatteryStateDisplayStateFlagsEXT XR_BATTERY_STATE_DISPLAY_STATE_NO_BATTERY_BIT_EXT = 0x00000008;

Description

The flag bits have the following meanings:

Flag Descriptions
  • XR_BATTERY_STATE_DISPLAY_STATE_VALID_BIT_EXT  — Indicates validity of XrBatteryStateDisplayEXT::batteryLevel

  • XR_BATTERY_STATE_DISPLAY_STATE_CHARGING_BIT_EXT  — Indicates that the device associated with the interaction profile is charging.

  • XR_BATTERY_STATE_DISPLAY_STATE_PLUGGED_IN_BIT_EXT  — Indicates that the device associated with the interaction profile is plugged in to a power source.

  • XR_BATTERY_STATE_DISPLAY_STATE_NO_BATTERY_BIT_EXT  — Indicates that the device associated with the interaction profile does not have a battery power source.

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-2026 The Khronos Group Inc.