Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Add a method for obtaining display cutouts on Android #60552

Merged
merged 1 commit into from
May 2, 2022

Conversation

madmiraal
Copy link
Contributor

3.x version of #60551

Adds get_display_cutouts method to OS to return an Array of Rect2 each of which is the bounding rectangle for a display cutout or notch. Display cutouts 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.

This PR only implements the method for Android. Other platforms will return an empty array.

@akien-mga akien-mga merged commit d8e702b into godotengine:3.x May 2, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants