DocumentPictureInPicture
The DocumentPictureInPicture interface of the Document Picture-in-Picture API is the entry point for creating and handling document picture-in-picture windows. Available only in secure contexts.
Functions
Link copied to clipboard
Link copied to clipboard
inline suspend fun DocumentPictureInPicture.requestWindow(options: DocumentPictureInPictureOptions): Window
The requestWindow() method of the DocumentPictureInPicture interface opens the Picture-in-Picture window for the current main browsing context. It returns a Promise that fulfills with a Window instance representing the browsing context inside the Picture-in-Picture window.
Link copied to clipboard
fun requestWindowAsync(options: DocumentPictureInPictureOptions = definedExternally): Promise<Window>
The requestWindow() method of the DocumentPictureInPicture interface opens the Picture-in-Picture window for the current main browsing context. It returns a Promise that fulfills with a Window instance representing the browsing context inside the Picture-in-Picture window.
Link copied to clipboard