Difference between revisions of "Application:getDeviceSafeArea"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.11.3<br/> === Description === <br /> Some screens have non rectangular shapes, in which case it is useful to know the bounds of t...") |
|||
Line 7: | Line 7: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) (number) (number) (number) | + | (number), (number), (number), (number) = Application:getDeviceSafeArea(logical) |
</source> | </source> | ||
− | '''logical | + | '''logical''': (boolean) Returns the margin in logical scale if set to true. '''optional'''<br/> |
'''Returns''' (number) Minimum x<br/> | '''Returns''' (number) Minimum x<br/> | ||
'''Returns''' (number) Minimum y<br/> | '''Returns''' (number) Minimum y<br/> | ||
'''Returns''' (number) Maximum x<br/> | '''Returns''' (number) Maximum x<br/> | ||
'''Returns''' (number) Maximum y<br/> | '''Returns''' (number) Maximum y<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2017.11.3
Description
Some screens have non rectangular shapes, in which case it is useful to know the bounds of the safe area, that is area that is guaranteed to be visible and user accessible. This functions returns the minimum and maximum coordinates to use,
either in physical coordinates or in logical coordinates.
(number), (number), (number), (number) = Application:getDeviceSafeArea(logical)
logical: (boolean) Returns the margin in logical scale if set to true. optional
Returns (number) Minimum x
Returns (number) Minimum y
Returns (number) Maximum x
Returns (number) Maximum y