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 Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support48 ?511 ?35 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4848 ?51135 ? ?

1. 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.

Document Tags and Contributors

Contributors to this page: lucian95, jpmedley, apurv-pandey, MashKao
Last updated by: lucian95,