Android bottom inset

How do I get,
for android phones that has rounded corners on the bottom,
Samsung Galaxy S10, for example,
the bottom margin size that I should exclude from my display ?

There is a Java method of the class DisplayCutout (api level 28),
named getSafeInsetBottom() that should return this.

Is there support for this in 3.17 ?

You can make your own JNI functions to get this if you want from the Android OS side…

But, there is also a method inside the Director class: getSafeAreaRect() that should give your more information about the device’s safe area.

https://docs.cocos2d-x.org/api-ref/cplusplus/v3x/d7/df3/classcocos2d_1_1_director.html#a9ab2a3ba8fbd3295169304e4f3b35f77