Table of Contents

Class DocumentPictureInPicture

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The DocumentPictureInPicture 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

See also on MDN

Constructors

DocumentPictureInPicture()

public DocumentPictureInPicture()

Properties

Onenter

[Value("onenter")]
public EventHandlerNonNull Onenter { get; set; }

Property Value

EventHandlerNonNull

_window

NOTE
Experimental
The window read-only property of the
DocumentPictureInPicture 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 null otherwise.

Remarks

-{{domxref("Document Picture-in-Picture API", "Document Picture-in-Picture API", "", "nocode")}}
-Using the Document Picture-in-Picture API

See also on MDN

Methods

RequestWindow(DocumentPictureInPictureOptions)

NOTE
Experimental
The requestWindow() method of the
DocumentPictureInPicture 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

options DocumentPictureInPictureOptions

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(&quot;Document Picture-in-Picture API&quot;, &quot;Document Picture-in-Picture API&quot;, &quot;&quot;, &quot;nocode&quot;)}}
-Using the Document Picture-in-Picture API

See also on MDN