App Dimens Adjustment Factors
EN Singleton object that provides functions for calculating and resolving adjustment factors and screen qualifiers.
PT Objeto singleton que fornece funções para o cálculo e resolução de fatores de ajuste e qualificadores de tela.
Properties
EN Base Dp scaling factor. The default value is 1.0f (no adjustment).
EN Default increment factor (used in calculation WITHOUT Aspect Ratio).
EN Base reference width DP for adjustment calculation (e.g., 300dp).
EN Factor for circumference calculation (2π). Using kotlin.math.PI.
EN DEFAULT sensitivity coefficient: Adjusts how aggressive the scaling is on extreme screens.
EN Increment step size in Dp to calculate the adjustment (e.g., every 30dp).
EN Reference screen aspect ratio (e.g., 16:9), where the adjustment is neutral.
Functions
EN Helper function to get the screen aspect ratio from the configuration.
EN Composable function that calculates and remembers Basic Adjustment Factors.
EN Helper function that checks if a DpQualifierEntry meets the current screen dimensions.
EN Helper function that isolates the logic for fetching and selecting the custom Dp value through Qualifiers (SW, H, W). This logic should be called inside a 'remember' block for performance.