WindowControlsOverlay: phương thức getTitlebarAreaRect()

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.

Phương thức getTitlebarAreaRect() của giao diện WindowControlsOverlay truy vấn hình học hiện tại của vùng thanh tiêu đề của cửa sổ Progressive Web App.

Điều này chỉ áp dụng cho Progressive Web Apps được cài đặt trên hệ điều hành máy tính và sử dụng Window Controls Overlay API.

Cú pháp

js
getTitlebarAreaRect()

Tham số

Không có.

Giá trị trả về

Một DOMRect cung cấp tọa độ và kích thước của vùng thanh tiêu đề trong nội dung của ứng dụng.

Thông số kỹ thuật

Specification
Window Controls Overlay
# the-gettitlebararearect-method

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