getOverlayPosition

Returns the overlay position based on the specified options.

The options parameter contains the desired position of the overlay. The position can be one of the following values:

  • 'topLeft': Returns the position with 'top' set to 0 and 'left' set to 0.

  • 'topRight': Returns the position with 'top' set to 0 and 'right' set to 0.

  • 'bottomLeft': Returns the position with 'bottom' set to 0 and 'left' set to 0.

  • 'bottomRight': Returns the position with 'bottom' set to 0 and 'right' set to 0.

  • Any other value: Returns an empty map.

Example usage:

val position = getOverlayPosition(GetOverlayPositionOptions(position = "topLeft"))
Logger.d("GetOverlayPosition", position) // Output: {top=0, left=0}