ScreenDetailed: thuộc tính isInternal

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 chỉ đọc isInternal của giao diện ScreenDetailed là một giá trị boolean cho biết màn hình là nội bộ của thiết bị hay bên ngoài. Các thiết bị bên ngoài thường được sản xuất riêng biệt với thiết bị mà chúng được kết nối và có thể kết nối hoặc ngắt kết nối khi cần, trong khi màn hình nội bộ là một phần của thiết bị và không được thiết kế để ngắt kết nối.

Giá trị

Một giá trị boolean: true nếu màn hình là nội bộ, false nếu là bên ngoài.

Ví dụ

js
const screenDetails = await window.getScreenDetails();

// Is the first screen internal?
const screen1Internal = screenDetails.screens[0].isInternal;

Thông số kỹ thuật

Specification
Window Management
# ref-for-dom-screendetailed-isinternal

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

Xem thêm