PresentationRequest: start() method
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The start()
property of the PresentationRequest
interface returns a Promise
that resolves with a PresentationConnection
after the user agent prompts the user to select a display and grant permission to use that display.
Syntax
start()
Parameters
None.
Return value
A Promise
that resolves with a PresentationConnection
.
Security
Transient user activation is required. The user has to interact with the page or a UI element in order for this feature to work.
Specifications
Specification |
---|
Presentation API # selecting-a-presentation-display |
Browser compatibility
BCD tables only load in the browser