W3cubDocs

/DOM

PresentationRequest.start

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

Specification Status Comment
Presentation API
The definition of 'start()' in that specification.
Candidate Recommendation Initial definition.

Browser CompatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 48 ? 51
Disabled
51
Disabled
Disabled From version 51: this feature is behind the dom.presentation.controller.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
? 35 ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 48 48 ? 51
Disabled
51
Disabled
Disabled From version 51: this feature is behind the dom.presentation.controller.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
35 ? ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start