diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-04-24 21:12:22 +0200 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-04-26 13:51:21 +0200 |
commit | 71ce5857ecb76fdca3afc1a0882a575a3879d148 (patch) | |
tree | 4bcf19ee57f16ee5e0bf32e6c7516f7bb93fa46e /doc | |
parent | bfc727d9709beea73a1486b47eb745749c3ad0d1 (diff) |
Add a method for obtaining display cutouts on Android
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/DisplayServer.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 0d99c600d5..8ceb4d9c9b 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -104,6 +104,13 @@ <description> </description> </method> + <method name="get_display_cutouts" qualifiers="const"> + <return type="Array" /> + <description> + Returns an [Array] of [Rect2], each of which is the bounding rectangle for a display cutout or notch. These are non-functional areas on edge-to-edge screens used by cameras and sensors. Returns an empty array if the device does not have cutouts. See also [method screen_get_usable_rect]. + [b]Note:[/b] Currently only implemented on Android. Other platforms will return an empty array even if they do have display cutouts or notches. + </description> + </method> <method name="get_name" qualifiers="const"> <return type="String" /> <description> |