Table of Contents

Class PresentationRequest

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
A PresentationRequest object is used to initiate or reconnect to a presentation made by a controlling browsing context. The PresentationRequest object MUST be implemented in a controlling browsing context provided by a controlling user agent.
[Value("PresentationRequest")]
public class PresentationRequest : EventTarget
Inheritance
PresentationRequest
Inherited Members

Remarks

When a PresentationRequest is constructed, the given urls MUST be used as the list of presentation request URLs which are each a possible presentation URL for the PresentationRequest instance.

See also on MDN

Constructors

PresentationRequest()

public PresentationRequest()

PresentationRequest(List<string>)

NOTE
Experimental
The PresentationRequest()
constructor creates a new PresentationRequest object which creates a
new PresentationRequest.
public PresentationRequest(List<string> urls)

Parameters

urls List<string>

Remarks

PresentationRequest(string)

NOTE
Experimental
The PresentationRequest()
constructor creates a new PresentationRequest object which creates a
new PresentationRequest.
public PresentationRequest(string url)

Parameters

url string

Remarks

Properties

Onconnectionavailable

[Value("onconnectionavailable")]
public EventHandlerNonNull Onconnectionavailable { get; set; }

Property Value

EventHandlerNonNull

Methods

GetAvailability()

NOTE
Experimental
When the getAvailability() method is called, the user agent MUST run the following steps:
[Value("getAvailability")]
public Task<PresentationAvailability> GetAvailability()

Returns

Task<PresentationAvailability>

Remarks

Reconnect(string)

NOTE
Experimental
When the reconnect(presentationId) method is called on a PresentationRequest presentationRequest, the user agent MUST run the following steps to reconnect to a presentation:
[Value("reconnect")]
public Task<PresentationConnection> Reconnect(string presentationId)

Parameters

presentationId string

Returns

Task<PresentationConnection>

Remarks

Start()

NOTE
Experimental
The start() property of the PresentationRequest interface returns a {{jsxref("Promise")}} that resolves with a PresentationConnection after the user agent prompts the user to select a display and grant permission to use that display.
[Value("start")]
public Task<PresentationConnection> Start()

Returns

Task<PresentationConnection>

A {{jsxref("Promise")}} that resolves with a PresentationConnection.

Remarks