PresentationRequest: start() method

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Thuộc tính start() của giao diện PresentationRequest trả về một Promise được giải quyết với PresentationConnection sau khi user agent nhắc người dùng chọn màn hình và cấp quyền sử dụng màn hình đó.

Cú pháp

js
start()

Tham số

Không có.

Giá trị trả về

Một Promise được giải quyết với PresentationConnection.

Bảo mật

Kích hoạt người dùng tạm thời là bắt buộc. Người dùng phải tương tác với trang hoặc phần tử UI để tính năng này hoạt động.

Thông số kỹ thuật

Specification
Presentation API
# selecting-a-presentation-display

Tương thích trình duyệt