XRSystem

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun dispatchEvent(event: Event): Boolean
Link copied to clipboard

Queries if a given mode may be supported by the user agent and device capabilities.

Link copied to clipboard

Queries if a given mode may be supported by the user agent and device capabilities.

Link copied to clipboard
inline suspend fun XRSystem.requestSession(mode: XRSessionMode): XRSession
inline suspend fun XRSystem.requestSession(mode: XRSessionMode, options: XRSessionInit): XRSession

Attempts to initialize an XRSession for the given mode if possible, entering immersive mode if necessary.

Link copied to clipboard
fun requestSessionAsync(mode: XRSessionMode, options: XRSessionInit = definedExternally): Promise<XRSession>

Attempts to initialize an XRSession for the given mode if possible, entering immersive mode if necessary.

Link copied to clipboard