Class DocumentPictureInPicture
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalDocumentPictureInPicture interface of the {{domxref("Document Picture-in-Picture API", "Document Picture-in-Picture API", "", "nocode")}} is the entry point for creating and handling document picture-in-picture windows.
[Value("DocumentPictureInPicture")]
public class DocumentPictureInPicture : EventTarget
- Inheritance
-
DocumentPictureInPicture
- Inherited Members
Remarks
It is accessed via the DocumentPictureInPicture property.
-{{domxref("Document Picture-in-Picture API", "Document Picture-in-Picture API", "", "nocode")}}
-Using the Document Picture-in-Picture API
Constructors
DocumentPictureInPicture()
public DocumentPictureInPicture()
Properties
Onenter
[Value("onenter")]
public EventHandlerNonNull Onenter { get; set; }
Property Value
_window
NOTE
Experimentalwindow read-only property of theDocumentPictureInPicture interface returns a Window instance representing the browsing context inside the Picture-in-Picture window.
[Value("window")]
public Window _window { get; }
Property Value
- Window
A Window object instance if the Picture-in-Picture window has already been opened using RequestWindow(DocumentPictureInPictureOptions), or
nullotherwise.
Remarks
-{{domxref("Document Picture-in-Picture API", "Document Picture-in-Picture API", "", "nocode")}}
-Using the Document Picture-in-Picture API
Methods
RequestWindow(DocumentPictureInPictureOptions)
NOTE
ExperimentalrequestWindow() method of theDocumentPictureInPicture interface opens the Picture-in-Picture window for the current main browsing context. It returns a {{jsxref("Promise")}} that fulfills with a Window instance representing the browsing context inside the Picture-in-Picture window.
[Value("requestWindow")]
public Task<Window> RequestWindow(DocumentPictureInPictureOptions options = null)
Parameters
optionsDocumentPictureInPictureOptions
Returns
- Task<Window>
A {{jsxref("Promise")}} that fulfills with a Window object instance representing the browsing context inside the Picture-in-Picture window.
Remarks
The requestWindow() method requires transient activation, i.e., it must be invoked in response to a user action such as a mouse click or button press.
-{{domxref("Document Picture-in-Picture API", "Document Picture-in-Picture API", "", "nocode")}}
-Using the Document Picture-in-Picture API