Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread Klaus major-k via use-livecode
Hi Jaques,

> Am 11.08.2022 um 20:13 schrieb J. Landman Gay via use-livecode 
> :
> 
> On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote:
>> FYI, iPhoneSafeAreaInsets() returns EMPTY on Android.
> 
> It looks like it's for iOS only, Android isn't listed in the dictionary 
> reference. You'll probably need to use the working screenrect on Android.

yes, I just wanted to see if it will throw an error on Android.
It doesn't. :-)

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread J. Landman Gay via use-livecode

On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote:

FYI, iPhoneSafeAreaInsets() returns EMPTY on Android.


It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll 
probably need to use the working screenrect on Android.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread J. Landman Gay via use-livecode
Actually some Android phones have notches to imitate iPhones when Apple 
first introduced that. It wasn't very popular and most Android phones now 
use punch holes, but those also take up a bit of space, though not much.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 11, 2022 10:29:29 AM Bob Sneidar via use-livecode 
 wrote:


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 
 wrote:


iPhoneSafeAreaInsets() returns EMPTY on Android


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread Klaus major-k via use-livecode
Hi Bob,

> Am 11.08.2022 um 17:27 schrieb Bob Sneidar via use-livecode 
> :
> 
> 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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread Bob Sneidar via use-livecode
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 
>  wrote:
> 
> iPhoneSafeAreaInsets() returns EMPTY on Android

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread Klaus major-k via use-livecode
Hi all,

> Am 11.08.2022 um 14:44 schrieb Klaus major-k via use-livecode 
> :
> Hi all,
>> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode 
>> :
>> 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. 

and done: 


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iPhoneSafeAreaInsets() and Android

2022-08-11 Thread Klaus major-k via use-livecode
Hi all,

> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode 
> :
> 
> 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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


iPhoneSafeAreaInsets() and Android

2022-07-15 Thread Klaus major-k via use-livecode
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!


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode