Search completed in 1.21 seconds.
58 results for "eventinit":
Your results are loading. Please wait...
XRInputSourcesChangeEventInit.added - Web APIs
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. ...
... 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. ...
...EventInit 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. ...
...And 3 more matches
XRInputSourcesChangeEventInit.removed - Web APIs
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. ...
... 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. ...
... 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. ...
...And 3 more matches
XRInputSourceEventInit.inputSource - Web APIs
The new object's inputSource will be set to this value. ...
...The new object's inputSource will be set to this value. ...
...The new object's inputSource will be set to this value. ...
...And 2 more matches
RTCTrackEventInit.transceiver - Web APIs
Note: The RTCRtpReceiver referred to by this RTCRtpReceiver's receiver property will always be the same as the RTCTrackEvent's receiver property. ...
... Note: The RTCRtpReceiver referred to by this RTCRtpReceiver's receiver property will always be the same as the RTCTrackEvent's receiver property. ...
... Note: The RTCRtpReceiver referred to by this RTCRtpReceiver's receiver property will always be the same as the RTCTrackEvent's receiver property. ...
...ablish a single bidirectional SRTP stream for use by the track associated with the RTCTrackEvent. Note: The RTCRtpReceiver referred to by this RTCRtpReceiver's receiver property will always be the same as the RTCTrackEvent's receiver property. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCTrackEventInit.transceiver' in that specification. Candidate Recommendation Initial specification. ...
XRInputSourceEventInit.frame - Web APIs
The XRInputSourceEventInit dictionary's property frame specifies an XRFrame providing information about the timestamp at which the new input source event took place, as well as access to the XRFrame method getPose() which can be used to map the coordinates of any XRReferenceSpace to the space in which the event took place. Of course, as a general rule, you won't need to create XRInputSourceEventInit objects yourself. These events are generated by and sent to you by the WebXR infrastructure. ...
...t which the new input source event took place, as well as access to the XRFrame method getPose() which can be used to map the coordinates of any XRReferenceSpace to the space in which the event took place. Of course, as a general rule, you won't need to create XRInputSourceEventInit objects yourself. These events are generated by and sent to you by the WebXR infrastructure. Syntax xrInputSourceEventInit.frame = xrFrame; let xrInputSourceEventInit = { frame: xrFrame }; let xrInputSourceEvent = new XRInputSourceEvent(type, { frame: xrFrame }); Value An XRFrame indicating the time at which the event took place, and providing a getPose() method which can be used to map reference spaces to the world reference space. Usage notes The event frame does not correspond to a visual frame as is deliver...
...objects in the scene at the time the event occurred. Examples This example creates a new select event and sends it to the XRSession. let event = new XRInputSourceEvent("select", { frame: eventFrame, inputSource: source }; if (event) { xrSession.dispatchEvent(event); } Specifications Specification Status Comment WebXR Device APIThe definition of 'XRInputSourceEventInit.frame' in that specification. Working Draft Initial definition. ...
RTCTrackEventInit - Web APIs
The WebRTC API's RTCTrackEventInit dictionary is used to provide information describing an RTCTrackEvent when instantiating a new track event using new RTCTrackEvent(). Properties RTCTrackEventInit inherits properties from the EventInit dictionary, and also includes the following properties: receiver The RTCRtpReceiver which is being used to receive the track's media. streams Optional An array of MediaStream objects representing each of the streams that comprise the event's corresponding track. track The MediaStreamTrack the event is associated with. transceiver The RTCRtpTransceiver associated with the event. ...
... Candidate Recommendation Initial specification. ...
XRInputSourcesChangeEventInit.session - Web APIs
The XRInputSourcesChangeEventInit property session specifies the XRSession to which the input source list change event applies. Syntax let inputSourcesEventInit = { session: xrSession, added: [newDevice1, ..., newDeviceN], removed: [removedDevice1, ..., newDeviceN], }; myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange", inputSourcesEventInit); myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange", { session: xrSession, added: addedDeviceList, removed: removedDeviceList }); Value An XRSession indicating the WebXR session to which the input source list change applies. Specifications...
... Working Draft Initial definition. ...
XRReferenceSpaceEventInit.transform - Web APIs
The transform is defined using the old coordinate system, which allows it to be used to convert coordinates from the pre-event coordinate system to the post-event coordiante system. Syntax let eventInitDict = { referenceSpace: xrReferenceSpace, transform: xrRigidTransform }); Value An XRRigidTransform object providing a transform that can be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system. Examples This simple snippet calls the constructor to create a new reference space event of type reset. ...
...te system to the post-event coordinate system. Examples This simple snippet calls the constructor to create a new reference space event of type reset. let refSpaceEvent = new XRReferenceSpaceEvent("reset", { referenceSpace: myRefSpace, transform: myTransform }); Specifications Specification Status Comment WebXR Device APIThe definition of 'XRReferenceSpaceEventInit.transform' in that specification. Working Draft Initial definition. ...
XRReferenceSpaceEventInit - Web APIs
Since the properties are read-only, this is the only opportunity available to set their values. You will not usually need to use this, since these events are created by the WebXR infrastructure. Properties referenceSpace The XRReferenceSpace from which the event originated. transform An XRRigidTransform which maps the old coordinate system (from before the changes indicated by this event) to the new coordiante system. Usage notes All of this dictionary's properties must have valid values set on them before calling the XRReferenceSpaceEvent() constructor. ...
...lling the XRReferenceSpaceEvent() constructor. Examples This simple snippet calls the constructor to create a new reference space event of type reset. let refSpaceEvent = new XRReferenceSpaceEvent("reset", { referenceSpace: myRefSpace, transform: myTransform }); Specifications Specification Status Comment WebXR Device APIThe definition of 'XRReferenceSpaceEventInit' in that specification. Working Draft Initial definition. ...
RTCTrackEventInit.receiver - Web APIs
The RTCTrackEventInit dictionary's receiver property specifies the RTCRtpReceiver associated with the event. Syntax var trackEventInit = { receiver: rtpReceiver, track: mediaStreamTrack, streams: [videoStream], transceiver: rtpTransceiver }; var rtpReceiver = trackEventInit.receiver; Value The RTCRtpTransceiver which pairs the receiver with a sender and other properties which establish a single bidirectional SRTP stream for use by the track associated with the RTCTrackEvent. Note: The transceiver includes its own receiver property, which will always be the same RTCRtpReceiver as this one. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCTrackEventInit.receiver' in that specification. ...
RTCTrackEventInit.streams - Web APIs
The RTCTrackEventInit dictionary's optional streams property provides an array containing a MediaStream object for each of the streams associated with the event's track. Syntax var trackEventInit = { receiver: rtpReceiver, track: mediaStreamTrack, streams: [videoStream], transceiver: rtpTransceiver }; var streamList = trackEventInit.streams; Value An array of MediaStream objects, one for each stream which make up the track. If streams is not specified, its default value is an empty array. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCTrackEventInit.streams' in that specification. Candidate Recommendation Initial specification. ...
RTCTrackEventInit.track - Web APIs
The RTCTrackEventInit dictionary's track property specifies the MediaStreamTrack associated with the track event. Syntax var trackEventInit = { receiver: rtpReceiver, track: mediaStreamTrack, streams: [videoStream], transceiver: rtpTransceiver }; var track = trackEventInit.track; Value A MediaStreamTrack representing the track with which the event is associated. This is the track that's being added to the RTCPeerConnection. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCTrackEventInit.track' in that specification. Candidate Recommendation Initial specification. ...
XRInputSourceEventInit - Web APIs
The XRInputSourceEventInit dictionary is used when calling the XRInputSourceEvent() constructor to provide configuration options for the newly-created XRInputSourceEvent object to take on. Properties The XRInputSourceEventInit dictionary inherits properties from the EventInit dictionary. It also offers the following: frame An XRFrame object representing the event frame during which the event took place. This event is not associated with the animation process, and has no viewer information contained within it. inputSource An XRInputSource object representing the input device from which the event is being sent. Specifications Specification Status Comment WebXR Device APIThe definition of 'XRInputSourceEventInit' in that specification. Working Draft Init...
XRInputSourcesChangeEventInit - Web APIs
The XRInputSourcesChangeEventInit dictionary is used to provide options to the XRInputSourcesChangeEvent() constructor in order to set the initial state of the new XRInputSourcesChangeEvent object. Properties added Read only An array of zero or more XRInputSource objects, each representing one input device which is newly available to use. removed Read only An array of zero or more XRInputSource objects representing the input devices which are no longer available. session Read only The XRSession to which the event applies. Examples <tbd> Specifications Specification Status Comment WebXR Device APIThe definition of 'XRInputSourcesChangeEventInit' in that specification. Working Draft Initial definition. ...
XRReferenceSpaceEventInit.referenceSpace - Web APIs
The XRReferenceSpaceEventInit property referenceSpace is used to establish the value of a newly-constructed XRReferenceSpaceEvent object when calling the XRReferenceSpaceEvent() constructor. Syntax let eventInitDict = { referenceSpace: xrReferenceSpace, transform: xrRigidTransform }); Value An XRReferenceSpace indicating the source of the event. Examples This simple snippet calls the constructor to create a new reference space event of type reset. let refSpaceEvent = new XRReferenceSpaceEvent("reset", { referenceSpace: myRefSpace, transform: myTransform }); Specifications Specification Status Comment WebXR Device APIThe definition of 'XRReferenceSpaceEventInit.referenceSpace' in that specification. Working Draft Initial definition. ...
XRSessionEventInit.session - Web APIs
The XRSessionEventInit dictionary's session property specifies the XRSession for which the event describes a state change. Syntax let sessionEventInit = { session: xrSession }; mySessionEvent = new XRSessionEvent(type, sessionEventInit); mySessionEvent = new XRSessionEvent(type, { session: XRSession }); Value An XRSession object indicating which WebXR session the event is referring to. Specifications Specification Status Comment WebXR Device APIThe definition of 'XRSessionEventInit.session' in that specification. Working Draft Initial definition. ...
XRSessionEventInit - Web APIs
The XRSessionEventInit dictionary is used when calling the XRSessionEvent() constructor to provide the new event's initial values. You're unlikely to need to create these events yourself, however, as they're created by the XR system. Properties session The XRSession to which the event is to be delivered. Examples <tbd> Specifications Specification Status Comment WebXR Device APIThe definition of 'XRSessionEventInit' in that specification. Working Draft Initial definition. ...
Index - Web APIs
Web › API › Index
Loading, Constructor, Experimental, FontFaceLoadEvent, Fonts, Reference The FontFaceSetLoadEvent constructor creates a new FontFaceLoadEvent object which is fired whenever a FontFaceSet loads. 1412 FontFaceSetLoadEvent.fontfaces API, CSSFontLoading, Experimental, FontFaceLoadEvent, Fonts, Property, Reference, fontfaces The fontfaces read-only property of the FontFaceLoadEventInit interface returns an array of FontFace instances, each of which represents a single usable font. 1413 Force Touch events Advanced, DOM, Event, Mobile, NeedsBrowserCompatibility, NeedsCompatTable, NeedsMobileBrowserCompatibility, Reference Force Touch events are a proprietary, Apple-specific feature which makes possible (where supported by the input hardware) new interactions ...
...track property specifies the MediaStreamTrack that has been added to the RTCPeerConnection. 3545 RTCTrackEvent.transceiver API, Media, Property, RTCTrackEvent, RTP, Reference, Transceiver, WebRTC, WebRTC API, events The WebRTC API interface RTCTrackEvent's read-only transceiver property indicates the RTCRtpTransceiver affiliated with the event's track. ...
...en added to the RTCPeerConnection. 3545 RTCTrackEvent.transceiver API, Media, Property, RTCTrackEvent, RTP, Reference, Transceiver, WebRTC, WebRTC API, events The WebRTC API interface RTCTrackEvent's read-only transceiver property indicates the RTCRtpTransceiver affiliated with the event's track. ...
...And 4 more matches
InputEvent() - Web APIs
data: (Optional) A string containing characters to insert. This may be an empty string if the change doesn't insert text (such as when deleting characters, for example). ...
... data: (Optional) A string containing characters to insert. This may be an empty string if the change doesn't insert text (such as when deleting characters, for example). ...
... data: (Optional) A string containing characters to insert. This may be an empty string if the change doesn't insert text (such as when deleting characters, for example). ...
...laintext data being added to or removed from editible content. isComposing: (Optional) A boolean indicating that the event is part of a composition session, meaning it is after a compositionstart event but before a compositionend event. The default is false. ranges: (Optional) An array of static ranges that will be affected by a change to the DOM if the input event is not canceled. The InputEventInit dictionary also accepts fields from UIEventInit and from EventInit dictionaries. ...
MouseEvent() - Web APIs
"screenY", optional and defaulting to 0, of type long, that is the vertical position of the mouse event on the user's screen; setting this value doesn't move the mouse pointer. ...
... "screenY", optional and defaulting to 0, of type long, that is the vertical position of the mouse event on the user's screen; setting this value doesn't move the mouse pointer. ...
... "screenY", optional and defaulting to 0, of type long, that is the vertical position of the mouse event on the user's screen; setting this value doesn't move the mouse pointer. ...
...ter or mouseover) or is entering (in case of a mouseout or mouseleave). "region", optional and defaulting to null, of type DOMString, is the id of the hit region affected by the event. The absence of any hit region is affected, is represented by the null value. In some implementations, passing anything other than a number for the screen and client fields will throw a TypeError. The MouseEventInit dictionary also accepts fields from UIEventInit and from EventInit dictionaries. Specifications Specification Status Comment CSS Object Model (CSSOM) View ModuleThe definition of 'MouseEvent' in that specification. Working Draft Redefines screen and client fields long to double. Document Object Model (DOM) Level 3 Events SpecificationThe definitio...
PointerEvent.PointerEvent() - Web APIs
width -- optional and defaulting to 1, of type double, that sets the value of the instance's PointerEvent.width. ...
... width -- optional and defaulting to 1, of type double, that sets the value of the instance's PointerEvent.width. ...
... width -- optional and defaulting to 1, of type double, that sets the value of the instance's PointerEvent.width. ...
...ltY. twist -- optional and defaulting to 0, of type long, that sets the value of the instance's PointerEvent.twist. pointerType -- optional and defaulting to "", of type DOMString, that sets the value of the instance's PointerEvent.pointerType. isPrimary -- optional and defaulting to false, of type Boolean, that sets the value of the instance's PointerEvent.isPrimary. Note: The PointerEventInit dictionary also accepts fields from the MouseEvent, UIEventInit and EventInit dictionaries. Example var moveEvent = new PointerEvent("pointermove"); var downEvent = new PointerEvent("pointerdown", {pointerId: 1, bubbles: true, cancelable: true, pointerType: "touch", width: 100, height: 100, isPrimary: true }); ...
WebIDL bindings
st owning union out param. The name of the struct is the concatenation of the names of the types in the union, with "Or" inserted between them, and for an owning struct "Owning" prepended. ...
...They also expose setters that set the union as being of a particular type and return a reference to the union's internal storage where that type could be stored. ...
...} Bindings.conf details Write me. In particular, need to describe at least use of concrete, prefable, and addExt...
AnimationPlaybackEvent.AnimationPlaybackEvent() - Web APIs
cancelable Optional Defaults to false, of type Boolean, indicating if the event can be canceled or not. ...
... cancelable Optional Defaults to false, of type Boolean, indicating if the event can be canceled or not. ...
... The AnimationPlaybackEvent() constructor of the Web Animations API returns a new AnimationPlaybackEvent object instance. Syntax var animationPlaybackEvent = new AnimationPlaybackEvent(type, eventInitDict); Parameters type A DOMString representing the name of the event. eventInitDict Optional An optional EventInit dictionary object containing the following fields: bubbles Optional Defaults to false, of type Boolean, indicating if the event bubbles or not. cancelable Optional Defaults to false, of type Boolean, indicating if the event can be canceled or not. detail Optional Defaults to null, of type any -- an event-dependent value associated with the event. Specifications Specification Status Comment Web AnimationsThe definition of 'Animation...
KeyboardEvent() - Web APIs
"code", optional and defaulting to "", of type DOMString, that sets the value of KeyboardEvent.code. "location", optional and defaulting to 0, of type unsigned long, that sets the value of KeyboardEvent.location. ...
... "code", optional and defaulting to "", of type DOMString, that sets the value of KeyboardEvent.code. "location", optional and defaulting to 0, of type unsigned long, that sets the value of KeyboardEvent.location. ...
...g. "charCode", optional and defaulting to 0, of type unsigned long, that sets the value of the deprecated KeyboardEvent.charCode. "keyCode", optional and defaulting to 0, of type unsigned long, that sets the value of the deprecated KeyboardEvent.keyCode. "which", optional and defaulting to 0, of type unsigned long, that sets the value of the deprecated KeyboardEvent.which. The KeyboardEventInit dictionary also accepts fields from the UIEventInit and EventInit dictionaries. Specifications Specification Status Comment UI EventsThe definition of 'KeyboardEvent()' in that specification. Working Draft Current definition. Document Object Model (DOM) Level 3 Events SpecificationThe definition of 'KeyboardEvent()' in that specification. Obsol...
TouchEvent() - Web APIs
"targetTouches", optional and defaulting to [], of type Touch[], that is a list of objects for every point of contact that is touching the surface and started on the element that is the target of the current event. ...
... "targetTouches", optional and defaulting to [], of type Touch[], that is a list of objects for every point of contact that is touching the surface and started on the element that is the target of the current event. ...
...aneously pressed. "shiftKey", optional and defaulting to false, of type Boolean, that indicates if the shift key was simultaneously pressed. "altKey", optional and defaulting to false, of type Boolean, that indicates if the alt key was simultaneously pressed. "metaKey", optional and defaulting to false, of type Boolean, that indicates if the meta key was simultaneously pressed. The TouchEventInit dictionary also accepts fields from UIEventInit and from EventInit dictionaries. ...
WheelEvent() - Web APIs
"deltaY", optional and defaulting to 0.0, is a double representing the vertical scroll amount in the deltaMode unit. "deltaZ", optional and defaulting to 0.0, is a double representing the scroll amount for the z-axis in the deltaMode unit. ...
... "deltaY", optional and defaulting to 0.0, is a double representing the vertical scroll amount in the deltaMode unit. "deltaZ", optional and defaulting to 0.0, is a double representing the scroll amount for the z-axis in the deltaMode unit. ...
...l amount. Permitted values are: Constant Value Description DOM_DELTA_PIXEL 0x00 The delta values are specified in pixels. DOM_DELTA_LINE 0x01 The delta values are specified in lines. DOM_DELTA_PAGE 0x02 The delta values are specified in pages. The WheelEventInit dictionary also accepts fields from the MouseEventInit, UIEventInit and EventInit dictionaries. Specifications Specification Status Comment Document Object Model (DOM) Level 3 Events SpecificationThe definition of 'WheelEvent()' in that specification. Obsolete Initial definition ...
ContentIndexEvent() - Web APIs
For ContentIndexEvent, this is always delete. eventInitDict Optional An options object containing any initialization data you want to populate the ContentIndexEvent object with. The options are: id: The id of the indexed content you want the ContentIndexEvent to remove. ...
... The ContentIndexEvent() constructor creates a new ContentIndexEvent object whose type and other options are configured as specified. Syntax var ContentIndexEvent = new ContentIndexEvent(type, ContentIndexEventInit); Parameters type A DOMString indicating the event which occurred. For ContentIndexEvent, this is always delete. eventInitDict Optional An options object containing any initialization data you want to populate the ContentIndexEvent object with. The options are: id: The id of the indexed content you want the ContentIndexEvent to remove. Return value A ContentIndexEvent object configured using the given inputs. Examples This examples constructs a new ContentIndexEvent with the relevant id. var removeData = { id : 'unique-content-id' } var ciEvent = new C...
NotificationEvent.NotificationEvent() - Web APIs
In later drafts of the specification, this parameter is not optional. ...
...In later drafts of the specification, this parameter is not optional. ...
SubmitEvent() - Web APIs
Return value A SubmitEvent object configured using the given inputs. ...
... Return value A SubmitEvent object configured using the given inputs. ...
XRSessionEvent() - Web APIs
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. Syntax newXRSessionEvent = new XRSessionEvent(type, eventInitDict); Parameters type A DOMString indicating which of the events represented by objects of type XRSessionEvent this particular object represents. See Event types for a list of the permitted values. eventInitDict An object conforming to the XRSessionEventInit dictionary which contains values to be applied to the newly-created event object. Permitted values are: session The XRSession to which the event is to be delivered. Return value A newly-created XRSessionEvent object representing an obje...
... Event types The following events are represented using the XRSessionEvent interface, and are permitted values for its type property. end Fired at the session when it has ended, after being terminated by the application or the user agent. visibilitychange Fired at the session whenever its visibility state changes. ...
Web APIs
Web › API
gSource RTCRtpEncodingParameters RTCRtpParameters RTCRtpReceiveParameters RTCRtpReceiver RTCRtpSendParameters RTCRtpSender RTCRtpStreamStats RTCRtpSynchronizationSource RTCRtpTransceiver RTCRtpTransceiverDirection RTCRtpTransceiverInit RTCSctpTransport RTCSessionDescription RTCSessionDescriptionCallback RTCStats RTCStatsIceCandidatePairState RTCStatsReport RTCStatsType RTCTrackEvent RTCTrackEventInit RadioNodeList Range ReadableByteStreamController ReadableStream ReadableStreamBYOBReader ReadableStreamBYOBRequest ReadableStreamDefaultController ReadableStreamDefaultReader RelativeOrientationSensor RenderingContext Report ReportingObserver ReportingObserverOptions Request RequestDestination ResizeObserver ResizeObserverEntry Response RsaHashedImportParams RsaHashedKeyGenParams ...
...faultController WritableStreamDefaultWriter X XDomainRequest XMLDocument XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestResponseType XMLSerializer XPathEvaluator XPathException XPathExpression XPathNSResolver XPathResult XRBoundedReferenceSpace XREnvironmentBlendMode XREye XRFrame XRFrameRequestCallback XRHandedness XRInputSource XRInputSourceArray XRInputSourceEvent XRInputSourceEventInit XRInputSourcesChangeEvent XRInputSourcesChangeEventInit XRPermissionDescriptor XRPermissionStatus XRPose XRReferenceSpace XRReferenceSpaceEvent XRReferenceSpaceEventInit XRReferenceSpaceType XRRenderState XRRenderStateInit XRRigidTransform XRSession XRSessionEvent XRSessionEventInit XRSessionInit XRSessionMode XRSpace XRSystem XRTargetRayMode XRView XRViewerPose XRViewport XRVisibilityState...
CloseEvent() - Web APIs
The CloseEvent() constructor creates a new CloseEvent. Syntax var event = new CloseEvent(typeArg, closeEventInit); Values typeArg Is a DOMString representing the name of the event. closeEventInit Optional Is a CloseEventInit dictionary, having the following fields: "wasClean", optional and defaulting to false, of type long, indicates if the connection has been closed cleanly or not. "code", optional and defaulting to 0, of type unsigned short, that is the connection close code sent by the server. "reason", optional and defaulting to '', of type DOMString, that is a human-readable reason why the server closed the connection. The CloseEventInit dictionary also accepts fields from the EventInit dictionary. Specifications Specification Status Comment ...
CompositionEvent.CompositionEvent() - Web APIs
The CompositionEvent() constructor creates a new CompositionEvent object instance. Syntax const myEvent = new CompositionEvent(typeArg [, CompositionEventInit]) Values typeArg Is a DOMString representing the name of the event. CompositionEventInit Optional A CompositionEventInit dictionary object, which can contain the following members: data Initializes the data attribute of the CompositionEvent object to the characters generated by the IME composition. Note: The CompositionEventInit dictionary inherits from the UIEventInit dictionary, so can also accept members defined on there. Specifications Specification Status Comment Document Object Model (DOM) Level 3 Events SpecificationThe definition of 'CompositionEvent()' in that specification.
CustomEvent() - Web APIs
The CustomEvent() constructor creates a new CustomEvent. Note: This feature is available in Web Workers. Syntax event = new CustomEvent(typeArg, customEventInit); Parameters typeArg A DOMString representing the name of the event. customEventInit Optional A CustomEventInit dictionary, having the following fields: "detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event. The CustomEventInit dictionary also accepts fields from the EventInit dictionary. Return value A new CustomEvent object of the specified type, with any other properties configured according to the CustomEventInit dictionary (if one was provided). Example // add an appropriate event listener obj.addEventListener("cat", function(e) { process(e.deta...
DragEvent() - Web APIs
nstructor is used to create a synthetic DragEvent object. Although this interface has a constructor, it is not possible to create a useful DataTransfer object from script, since DataTransfer objects have a processing and security model that is coordinated by the browser during drag-and-drops. This interface inherits properties from MouseEvent and Event. Syntax event = new DragEvent(type, DragEventInit); Arguments type Is a DOMString representing the name of the event (see DragEvent event types). DragEventInitOptional Is a DragEventInit dictionary, having the following fields: "dataTransfer", optional and defaults to "null". The type is DataTransfer. The DragEventInit dictionary inherits from the MouseEventInit dictionary. Specifications Specification Status ...
Event() - Web APIs
Web › API › Event › Event
The default is false. cancelable Optional A Boolean indicating whether the event can be cancelled. The default is false. composed Optional A Boolean indicating whether the event will trigger listeners outside of a shadow root (see Event.composed for more details). The default is false. ...
FetchEvent() - Web APIs
Options are as follows: clientId Read only The Client that the current service worker is controlling. ...
FocusEvent() - Web APIs
The FocusEvent() constructor returns a newly created FocusEvent object with an optional EventTarget. When the event has both a source and a destination, the relatedTarget value must be set to the other target. Syntax var focusEvent = new FocusEvent(typeArg[, focusEventInit]); Properties The FocusEvent() constructor also inherits arguments from UIEvent() and from Event(). typeArg Is a DOMString representing the name of the event. focusEventInit Optional Is a FocusEventInit dictionary, having the following fields: "relatedTarget", optional and defaulting to null, is an EventTarget representing the secondary target of a FocusEvent. The FocusEventInit dictionary also accepts fields from the UIEventInit and EventInit dictionaries. Specifications Specification Sta...
FontFaceSetLoadEvent.fontfaces - Web APIs
Syntax var fontFace[] = FontFaceSetLoadEvent.fontfaces Value An array of FontFace instance. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'fontfaces' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
FormDataEvent() - Web APIs
The default is false. cancelable: a Boolean indicating whether the event can be cancelled. The default is false. composed: a Boolean indicating whether the event will trigger listeners outside of a shadow root (see Event.composed for more details). The default is false. ...
MediaStreamEvent() - Web APIs
The MediaStreamEvent() constructor creates a new MediaStreamEvent. Syntax var event = new MediaStreamEvent(type, mediaStreamEventInit); Values type Is a DOMString containing the name of the event, like addstream or removestream. mediaStreamEventInit Is a MediaStreamEventInit dictionary, having the following fields: "stream" of type MediaStream representing the stream being concerned by the event. "bubbles", optional and defaulting to false, inherited from EventInit, and indicating if the event must bubble or not. "cancelable", optional and defaulting to false, inherited from EventInit, and indicating if the event can be canceled or not. Example // s is a MediaStream var event = new MediaStreamEvent("addstream", {"stream": s}); ...
PaymentMethodChangeEvent - Web APIs
ates a new PaymentMethodChangeEvent object providing details about a paymentmethodchange event. Syntax paymentMethodChangeEvent = new PaymentMethodChangeEvent(type, options); Parameters type A DOMString which must contain the string paymentmethodchange, the name of the only type of event which uses the PaymentMethodChangeEvent interface. options Optional An optional PaymentMethodChangeEventInit dictionary which may contain zero or more of the following properties: methodName Optional A DOMString containing the payment method identifier for the payment handler being used. This is an empty string by default. methodDetails Optional An object providing payment method-specific information describing the changes made to the payment, or null if there is no additional information ava...
PaymentMethodChangeEvent - Web APIs
Payment Request API describes the paymentmethodchange event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a "store" card to make a purchase while using Apple Pay). Constructor PaymentMethodChangeEvent() Creates and returns a new PaymentMethodChangeEvent object, optionally initialized with values taken from a given PaymentMethodChangeEventInit dictionary. Properties In addition to the properties below, this interface includes properties inherited from PaymentRequestUpdateEvent. methodDetails Read only Secure context An object containing payment method-specific data useful when handling a payment method change. If no such information is available, this value is null. methodName Read only Secure context A DOMString containing ...
PushEvent.PushEvent() - Web APIs
The PushEvent() constructor creates a new PushEvent object. Note that the this constructor is exposed only to a service worker context. Syntax var myPushEvent = new PushEvent(type, eventInitDict); Parameters type A DOMString defining the type of PushEvent. This can be push or pushsubscriptionchange. eventInitDict Optional An options object containing any initialization data you want to populate the PushEvent object with. The options are: data: The data you want the PushEvent to contain, if any. When the constructor is invoked, the PushEvent.data property of the resulting object will be set to a new PushMessageData object containing bytes extracted from the eventInitDict data member. Example var dataInit = { data : 'Some sample text' } var myPushEvent = new PushEvent('push'...
RTCDTMFToneChangeEvent.RTCDTMFToneChangeEvent() - Web APIs
The RTCDTMFToneChangeEvent() constructor creates a new RTCDTMFToneChangeEvent. Syntax var event = new RTCDTMFToneChangeEvent(type, options); Parameters type A DOMString containing the name of the event. This is always "tonechange". options A dictionary of type RTCDTMFToneChangeEventInit, which may contain one or more of the following fields: tone A DOMString containing a single DTMF tone character which has just begun to play, or an empty string ("") to indicate that the previous tone has stopped playing. See Tone characters for details on what characters are permitted. Return value A newly-created RTCDTMFToneChangeEvent, configured as specified in the provided options. Tone characters The digits 0-9 These characters represent the digit keys on a telephone key...
RTCDataChannelEvent() - Web APIs
The RTCDataChannelEvent() constructor creates a new RTCDataChannelEvent. You will rarely if ever construct an RTCDataChannelEvent by hand; these events are normally created and sent by the WebRTC layer itself. Syntax var event = new RTCDataChannelEvent(type, rtcDataChannelEventInit); Parameters type A DOMString which specifies the name of the event. There is only one type of RTCDataChannelEvent, so this will always be "datachannel". rtcDataChannelEventInit A RTCDataChannelEventInit dictionary, which has following fields: "channel" of type RTCDataChannel, representing the data channel being concerned by the event. "bubbles", optional, inherited from EventInit. Indicates if the event must bubble or not. Default is false. "cancelable", optional, inherited from EventInit. Indica...
RTCPeerConnectionIceEvent() - Web APIs
ll): A RTCIceCandidate representing the ICE candidate being concerned by the event. If null, the event indicates the end of candidate gathering. "url" (optional, default is null): The URL of the STUN or TURN server which was used to gather the candidate. If the candidate was not gathered by a STUN or TURN server, this value must be null. "bubbles" (optional, default is false): Inherited from EventInit(), this Boolean option indicates whether or not the event must bubble. "cancelable" (optional, default is false, inherited from EventInit(), this Boolean indicates whether or not the event can be canceled. Return value A newly-created RTCPeerConnectionIceEvent, configured as specified in the provided options. Specifications Specification Status Comment WebRTC 1.
RTCTrackEvent() - Web APIs
ns a new RTCTrackEvent object, configured to describe the track which has been added to the RTCPeerConnection. In general, you won't need to use this constructor, as RTCTrackEvent objects are created by WebRTC and delivered to your RTCPeerConnector's ontrack event handler as appropriate. Syntax trackEvent = new RTCTrackEvent(eventInfo); Parameters eventInfo An object based on the RTCTrackEventInit dictionary, providing information about the track which has been added to the RTCPeerConnection. This object has the following properties: receiver The RTCRtpReceiver which is being used to receive the track's media. streams Optional An array of MediaStream objects representing each of the streams that comprise the event's corresponding track. track The MediaStreamTrack the event is associa...
RTCTrackEvent - Web APIs
is part of the RTCPeerConnection. The target is the RTCPeerConnection object to which the track is being added. This event is sent by the WebRTC layer to the web site or application, so you will not typically need to instantiate an RTCTrackEvent yourself. Constructor RTCTrackEvent() Creates and returns a new RTCTrackEvent object, initialized with properties taken from the specified RTCTrackEventInit dictionary. You will probably not need to create new track events yourself, since they're typically created by the WebRTC infrastructure and sent to the connection's ontrack event handler. Properties Since RTCTrackEvent is based on Event, its properties are also available. receiver Read only The RTCRtpReceiver used by the track that's been added to the RTCPeerConnection. streams Read onl...
SecurityPolicyViolationEvent.SecurityPolicyViolationEvent() - Web APIs
The SecurityPolicyViolationEvent constructor creates a new SecurityPolicyViolationEvent object instance. Syntax let SPVEvt = new SecurityPolicyViolationEvent(type, eventInitDict); Properties type A DOMString representing the type of security policy violation that occurred. eventInitDict Optional A dictionary object containing information about the properties of the SecurityPolicyViolationEvent to be constructed. This can include the following properties, but bear in mind that if you do include an eventInitDict, certain properties must be included (marked below with required): blockedURI: The blockedURI of the SecurityPolicyViolationEvent. If not included, the default value is "". columnNumber: The columnNumber of the SecurityPolicyViolationEvent. If not included, the defau...
UIEvent() - Web APIs
Web › API › UIEvent › UIEvent
The UIEvent() constructor creates a new UIEvent. Syntax event = new UIEvent(typeArg [, UIEventInit]) Values typeArg Is a DOMString representing the name of the event. UIEventInit Optional Is a UIEventInit dictionary, having the following fields: detail: optional and defaulting to 0, of type long, that is a event-dependant value associated with the event. UIEvent.detail lists the semantic for standard events. view: optional and defaulting to null, of type WindowProxy, that is the Window associated with the event . sourceCapabilities: An instance of the InputDeviceCapabilities interface which provides information about the physical device responsible for generating a touch event. The UIEventInit dictionary also accepts fields from the EventInit dictionary. Specific...
XRInputSourceEvent() - Web APIs
The XRInputSourceEvent() constructor creates and returns a new XRInputSourceEvent object describing an event (state change) which has occurred on a WebXR user input device represented by an XRInputSource. Syntax newInputSourceEvent = new XRInputSourceEvent(type, eventInitDict); Parameters type A DOMString indicating which of the input source events the new object will represent. Permitted values are listed under Event types below. eventInitDict An object based on the XRInputSourceEventInit dictionary which contains the values to assign to the new event's properties. Return value A new XRInputSourceEvent object representing the event described by the given type and eventInitDict. Event types select Sent to an XRSession when the sending input source has fully completed a prima...
XRInputSourceEvent - Web APIs
input device such as a hand controller, gaze tracking system, or motion tracking system. More specifically, they represent a change in the state of an XRInputSource. To learn more about handling inputs in a WebXR project, see the article Inputs and input sources. Constructor XRInputSourceEvent() Creates and returns a new XRInputSourceEvent object whose properties match those provided in the eventInitDict dictionary provided. Properties frame Read only An XRFrame object providing the needed information about the event frame during which the event occurred. This frame may have been rendered in the past rather than being a current frame. Because this is an event frame, not an animation frame, you cannot call the XRFrame method getViewerPose() on it; instead, use getPose(). inputSource Re...
XRInputSourcesChangeEvent() - Web APIs
The XRInputSourcesChangeEvent() constructor creates and returns a new XRInputSourcesChangeEvent object, representing an update to the list of available WebXR input devices. You won't typically call this constructor yourself, as these events are created and sent to you by the WebXR system. Syntax newInputSourcesChangeEvent = new XRInputSourcesChangeEvent(type, eventInitDict); Parameters type A DOMString indicating the type of event which has occurred. This string must always be inputsourceschange. eventInitDict An object conforming to the XRInputSourcesChangeEventInit dictionary, prodividing the initial values for the event. Return value A newly-created XRInputSourcesChangeEvent object configured based upon the input parameters provided. Event types inputsourceschange Delivered t...
XRInputSourcesChangeEvent - Web APIs
The WebXR Device API interface XRInputSourcesChangeEvent is used to represent the inputsourceschange event sent to an XRSession when the set of available WebXR input controllers changes. Constructor XRInputSourcesChangeEvent() Creates and returns a new XRInputSourcesChangeEvent object configured as indicated by the given XRInputSourcesChangeEventInit object. The specified type must be inputsourceschange, which is the only event that uses this interface. Properties added Read only An array of zero or more XRInputSource objects, each representing an input device which has been newly connected or enabled for use. removed Read only An array of zero or more XRInputSource objects representing the input devices newly connected or enabled for use. session Read only The XRSession to whi...
XRReferenceSpaceEvent() - Web APIs
The XRReferenceSpaceEvent() constructor is used to create a new XRReferenceSpaceEvent object, which represents an event regarding the state of a WebXR reference space object, XRReferenceSpace. Currently, only the reset event is defined using this type. Syntax let refSpaceEvent = new XRReferenceSpaceEvent(type, eventInitDict); Parameters type A DOMString indicating the event type which has occurred. Currently, this is always reset. eventInitDict An object based on the XRReferenceSpaceEventInit dictionary, containing data used to initialize the new event object. The properties of this object are: referenceSpace The XRReferenceSpace from which the event originated. transform An XRRigidTransform which maps the old coordinate system (from before the changes indicated by this event)...
XRReferenceSpaceEvent - Web APIs
The WebXR Device API interface XRReferenceSpaceEvent represents an event sent to an XRReferenceSpace. Currently, the only event that uses this type is the reset event. Constructor XRReferenceSpaceEvent() Returns a new XRReferenceSpaceEvent with the specified type and configured using the values in the given XRReferenceSpaceEventInit dictionary. Properties In addition to inheriting the properties available on the parent interface, Event, XRReferenceSpaceEvent objects include the following properties: referenceSpace Read only An XRReferenceSpace indicating the reference space that generated the event. transform Read only An XRRigidTransform object indicating the position and orientation of the specified referenceSpace's native origin after the event, defined relative to the coordi...
XRSessionEvent - Web APIs
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. Constructor XRSessionEvent() Creates and returns a new XRSessionEvent object configured using the specified XRSessionEventInit object's values as available. Properties In addition to properties inherited from its parent interface, Event, XRSessionEvent provides the folllowing: session Read only The XRSession to which the event refers. Methods While XRSessionEvent defines no methods, it inherits methods from its parent interface, Event. Session event types The following events are represented using the XRSessionEvent interface, and are permitted values for its typ...