Class EXTUserPresence
This extension introduces a new event to notify when the system detected the change of user presence, such as when the user has taken off or put on an XR headset.
This event is typically used by an XR applications with non-XR experiences outside of the XR headset. For instance, some applications pause the game logic or video playback until the user puts on the headset, displaying an instructional message to the user in the mirror window on the desktop PC monitor. As another example, the application might use this event to disable a head-tracking driven avatar in an online meeting when the user has taken off the headset.
The user presence is fundamentally decoupled from the session lifecycle. Although the core spec for XrSessionState hinted potential correlation between the session state and user presence, in practice, such a connection may not consistently hold across various runtimes. Application should avoid relying on assumptions regarding these relationships between session state and user presence, instead, they should utilize this extension to reliably obtain user presence information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_EXT_user_presence_SPEC_VERSION
public static final int XR_EXT_user_presence_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_EXT_USER_PRESENCE_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_EVENT_DATA_USER_PRESENCE_CHANGED_EXT
public static final int XR_TYPE_EVENT_DATA_USER_PRESENCE_CHANGED_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SYSTEM_USER_PRESENCE_PROPERTIES_EXT
public static final int XR_TYPE_SYSTEM_USER_PRESENCE_PROPERTIES_EXTExtendsXrStructureType.Enum values:
- See Also:
-