iPhoneSafeAreaInsets() and Android

Bob Sneidar bobsneidar at iotecdigital.com
Thu Aug 11 11:27:21 EDT 2022


It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. 

There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? 

I see that your goal is to try and avoid platform checks, but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. 

Just my ignorant 2¢

Bob S


> On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> iPhoneSafeAreaInsets() returns EMPTY on Android



More information about the use-livecode mailing list