Package-level declarations
Types
Link copied to clipboard
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.
Link copied to clipboard
open class DocumentPictureInPictureEvent(val type: EventType<DocumentPictureInPictureEvent>, init: DocumentPictureInPictureEventInit) : Event
The DocumentPictureInPictureEvent interface of the Document Picture-in-Picture API is the event object for the enter event, which fires when the Picture-in-Picture window is opened. Available only in secure contexts.
Link copied to clipboard
Link copied to clipboard
interface DocumentPictureInPictureOptions
Properties
Functions
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.