A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/Navigator/presentation below:

Navigator: presentation property - Web APIs

Navigator: presentation property

Limited availability

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The presentation read-only property of Navigator serves as the entry point for the Presentation API and returns a reference to Presentation object.

Value

A reference to Presentation object.

Examples

Currently, the navigator.presentation property is most useful for feature checking, and, for the receiving user agent, to access the PresentationReceiver.

// Check if the Presentation API is available in the current browser
if ("presentation" in navigator) {
  footer.textContent = navigator.presentation.receiver
    ? "Receiving presentation"
    : "(idle)";
} else {
  console.error("Presentation API is not available in this browser.");
}
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4