class XrDevice


Provides hardware capabilities of the device.

Summary

Nested types

A device capability that determines how virtual content is added to the real world.

Public companion functions

XrDevice

Get the current XrDevice for the provided Session.

Public functions

XrDevice.DisplayBlendMode

Returns the preferred display blend mode for this session.

Public companion functions

getCurrentDevice

Added in 1.0.0-alpha08
fun getCurrentDevice(session: Session): XrDevice

Get the current XrDevice for the provided Session.

Parameters
session: Session

the Session connected to the device.

Public functions

getPreferredDisplayBlendMode

Added in 1.0.0-alpha08
fun getPreferredDisplayBlendMode(): XrDevice.DisplayBlendMode

Returns the preferred display blend mode for this session.

Returns
XrDevice.DisplayBlendMode

The DisplayBlendMode that is preferred by the Session for rendering. DisplayBlendMode.NO_DISPLAY will be returned if there are no supported blend modes available.

Throws
kotlin.IllegalStateException

if the Session has been destroyed.