@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface XRInputSourcesChangeEventInit
extends EventInit
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XRInputSourcesChangeEventInit.Builder
The XRInputSourcesChangeEvent() constructor creates and returns a new XRInputSourcesChangeEvent object, representing an update to the list of available WebXR input devices.
|
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull JsArray<XRInputSource> |
added()
The XRInputSourcesChangeEventInit property added specifies a list of input sources, each identified using an XRInputSource object, which the represented inputsourceschange event is to indicate are newly available for use.
|
static XRInputSourcesChangeEventInit.Builder |
create(XRSession session,
JsArray<XRInputSource> added,
JsArray<XRInputSource> removed) |
@JsNonNull JsArray<XRInputSource> |
removed()
The XRInputSourcesChangeEventInit property removed is an array of zero or more XRInputSource objects, each representing one input source which has been removed from the XRSession.
|
@JsNonNull XRSession |
session()
The XRInputSourcesChangeEventInit property session specifies the XRSession to which the input source list change event applies.
|
void |
setAdded(@JsNonNull JsArray<XRInputSource> added)
The XRInputSourcesChangeEventInit property added specifies a list of input sources, each identified using an XRInputSource object, which the represented inputsourceschange event is to indicate are newly available for use.
|
void |
setRemoved(@JsNonNull JsArray<XRInputSource> removed)
The XRInputSourcesChangeEventInit property removed is an array of zero or more XRInputSource objects, each representing one input source which has been removed from the XRSession.
|
void |
setSession(@JsNonNull XRSession session)
The XRInputSourcesChangeEventInit property session specifies the XRSession to which the input source list change event applies.
|
bubbles, cancelable, composed, create, setBubbles, setCancelable, setComposed@JsOverlay @Nonnull static XRInputSourcesChangeEventInit.Builder create(@Nonnull XRSession session, @Nonnull JsArray<XRInputSource> added, @Nonnull JsArray<XRInputSource> removed)
@JsProperty(name="session") @JsNonNull XRSession session()
@JsProperty void setSession(@JsNonNull XRSession session)
@JsProperty(name="added") @JsNonNull JsArray<XRInputSource> added()
@JsProperty void setAdded(@JsNonNull JsArray<XRInputSource> added)
@JsProperty(name="removed") @JsNonNull JsArray<XRInputSource> removed()
@JsProperty void setRemoved(@JsNonNull JsArray<XRInputSource> removed)