public final class XrDevice


Provides hardware capabilities of the device.

Summary

Nested types

public final class XrDevice.DisplayBlendMode

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

Public methods

static final @NonNull XrDevice

Get the current XrDevice for the provided Session.

final @NonNull XrDevice.DisplayBlendMode

Returns the preferred display blend mode for this session.

Public methods

getCurrentDevice

Added in 1.0.0-alpha08
public static final @NonNull XrDevice getCurrentDevice(@NonNull Session session)

Get the current XrDevice for the provided Session.

Parameters
@NonNull Session session

the Session connected to the device.

getPreferredDisplayBlendMode

Added in 1.0.0-alpha08
public final @NonNull XrDevice.DisplayBlendMode getPreferredDisplayBlendMode()

Returns the preferred display blend mode for this session.

Returns
@NonNull 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.