iPhoneSafeAreaInsets() and Android

Klaus major-k klaus at major-k.de
Thu Aug 11 08:44:31 EDT 2022


Hi all,

> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi friends,
> 
> quick question, cannot test it myself in the moment.
> 
> Will -> iPhoneSafeAreaInsets() 
> a. work or 
> b. throw an error when being used on Android?
> 
> If a. I presume it will return "the screenrect" without any "notches".
> Does it?
> 
> If b. then I will to check "if the platform = "iphone"..."
> 
> Thanks for any quick answer!

FYI, iPhoneSafeAreaInsets() returns EMPTY on Android.
Will file an enhancement request that is will return at least the screenrect on Android,
so there is no need for a PLATFORM check. 

We already need too much of them. 8-)


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