Web/API/PictureInPictureEvent/PictureInPictureEvent
The PictureInPictureEvent()
constructor returns a newly created PictureInPictureEvent
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 pictureInPictureEvent = new PictureInPictureEvent(typeArg[, pictureInPictureInit]);
Properties
The PictureInPictureEvent()
constructor also inherits arguments from Event()
.
typeArg
- Is a
DOMString
representing the name of the event. focusEventInit
Optional- Is a
PictureInPictureEventInit
dictionary, having the following fields:
"relatedTarget"
, optional and defaulting tonull
, is anEventTarget
.
Specifications
Specification | Status | Comment |
UnknownThe definition of 'PictureInPictureEvent()' in that specification. | Unknown | 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.
No compatibility data found. Please contribute data for "api.PictureInPictureEvent.PictureInPictureEvent" (depth: 1) to the MDN compatibility data repository.
See also
- The
PictureInPictureEvent
interface it belongs to.
PictureInPictureEvent() by Mozilla Contributors is licensed under CC-BY-SA 2.5.