PresentationRequest.start()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

var promise = presentationRequest.start()
promise.then(function(PresentationConnection) { ... })
       .catch(function(error) { ...})

Parameters

None.

Return value

A Promise that resolves with a PresentationConnection.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
start
48
79
51-88
No
35
No
No
48
51-79
35
No
5.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start