PresentationRequest: start() method

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

js
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