Class PresentationRequest
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalPresentationRequest 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.
Constructors
PresentationRequest()
public PresentationRequest()
PresentationRequest(List<string>)
NOTE
ExperimentalPresentationRequest()constructor creates a new PresentationRequest object which creates a
new PresentationRequest.
public PresentationRequest(List<string> urls)
Parameters
Remarks
PresentationRequest(string)
NOTE
ExperimentalPresentationRequest()constructor creates a new PresentationRequest object which creates a
new PresentationRequest.
public PresentationRequest(string url)
Parameters
urlstring
Remarks
Properties
Onconnectionavailable
[Value("onconnectionavailable")]
public EventHandlerNonNull Onconnectionavailable { get; set; }
Property Value
Methods
GetAvailability()
NOTE
ExperimentalgetAvailability() method is called, the user agent MUST run the following steps:
[Value("getAvailability")]
public Task<PresentationAvailability> GetAvailability()
Returns
Remarks
Reconnect(string)
NOTE
Experimentalreconnect(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
presentationIdstring
Returns
Remarks
Start()
NOTE
Experimentalstart() 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.