getReferenceAspectRatio

fun getReferenceAspectRatio(screenWidthDp: Float, screenHeightDp: Float): Float

EN Helper function to get the aspect ratio from the configuration.

Return

The screen aspect ratio (Largest dimension / Smallest dimension).

PT Função auxiliar para obter a proporção de tela a partir da configuração.

A proporção da tela (Maior dimensão / Menor dimensão).