XRSystem

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open external 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
external fun isSessionSupportedAsync(mode: XRSessionMode): Promise<JsBoolean>

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
external 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
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>