Table of Contents

Application:getDeviceSafeArea

Available since version: 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.

Syntax:

(number), (number), (number), (number) = Application:getDeviceSafeArea([logical])

Parameters:

  • logical: (boolean) Returns the margin in logical scale if set to true.

Return value:

  • number: Minimum x
  • number: Minimum y
  • number: Maximum x
  • number: Maximum y