iPhoneSafeAreaInsets() and Android

Klaus major-k klaus at major-k.de
Thu Aug 11 11:35:45 EDT 2022


Hi Bob,

> Am 11.08.2022 um 17:27 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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? 

Sure, but that is not the problem.

> I see that your goal is to try and avoid platform checks,

Yep, that is the goal, lazy moi! :-)

> 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.

Yes, and I still naively think that the IDE should just ignore these, so "if the platform = "mobile..." would not be neccessary anymore. 8-)

> 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
> 
> iPhoneSafeAreaInsets() returns EMPTY on Android

Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list