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'sXRSessionEvent() 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
typestringeventInitDictXRSessionEventInit
Remarks
Properties
Session
The read-only XRSessionEvent interface'ssession property indicates which
XRSession the event is about.
[Value("session")]
public XRSession Session { get; }