Table of Contents

Class XRSessionEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The WebXR Device API's XRSessionEvent interface describes an event which indicates the change of the state of an XRSession. These events occur, for example, when the session ends or the visibility of its context changes.

[Value("XRSessionEvent")]
public class XRSessionEvent : Event
Inheritance
XRSessionEvent
Inherited Members

Remarks

Constructors

XRSessionEvent()

public XRSessionEvent()

XRSessionEvent(string, XRSessionEventInit)

The WebXR Device API's
XRSessionEvent() constructor creates and returns a new
XRSessionEvent object. These objects represent events announcing
state changes in an XRSession representing an augmented or virtual
reality session.

public XRSessionEvent(string type, XRSessionEventInit eventInitDict)

Parameters

type string
eventInitDict XRSessionEventInit

Remarks

Properties

Session

The read-only XRSessionEvent interface's
session property indicates which
XRSession the event is about.

[Value("session")]
public XRSession Session { get; }

Property Value

XRSession

An XRSession object indicating which WebXR session the event refers to.

Remarks