Difference between revisions of "Application:getDeviceSafeArea"
From GiderosMobile
Line 9: | Line 9: | ||
<br /></translate> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number), (number), (number), (number) = | + | (number), (number), (number), (number) = application:getDeviceSafeArea(logical) |
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === |
Revision as of 22:59, 31 May 2019
Available since: Gideros 2017.11.3
Class: Application
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)
Parameters
logical: (boolean) Returns the margin in logical scale if set to true. optional
Return values
Returns (number) Minimum x
Returns (number) Minimum y
Returns (number) Maximum x
Returns (number) Maximum y