Difference between revisions of "Application:getDeviceSafeArea"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2017.11.3<br/>
+
'''<translate>Available since</translate>:''' Gideros 2017.11.3<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
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,  
 
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,  
Line 9: Line 9:
 
(number), (number), (number), (number) = Application:getDeviceSafeArea(logical)
 
(number), (number), (number), (number) = Application:getDeviceSafeArea(logical)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''logical''': (boolean) <translate>Returns the margin in logical scale if set to true.</translate> '''optional'''<br/>
 
'''logical''': (boolean) <translate>Returns the margin in logical scale if set to true.</translate> '''optional'''<br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>Minimum x</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Minimum x</translate><br/>
'''Returns''' (number) <translate>Minimum y</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Minimum y</translate><br/>
'''Returns''' (number) <translate>Maximum x</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Maximum x</translate><br/>
'''Returns''' (number) <translate>Maximum y</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Maximum y</translate><br/>

Revision as of 07:27, 24 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)

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