appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.compose.power/toDynamicPowerSp

toDynamicPowerSp

fun Number.toDynamicPowerSp(qualifier: DpQualifier, fontScale: Boolean, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): ERROR CLASS: Symbol not found for TextUnit

EN Converts a Number (base value) into a dynamically scaled TextUnit (Sp) for Jetpack Compose.

Scaling logic:

Builds a 64-bit packed cache key.

If fontScale is true, the result respects the system font size setting.

If fontScale is false (e.g. via .pwsem), the system font scale is stripped.

Checks DimenCache globally.

PT Converte um Number (valor base) em um TextUnit (Sp) dinamicamente escalado para Compose.

Lógica de escalonamento:

Constrói uma chave de cache de 64 bits.

Se fontScale for true, o resultado respeita a configuração de tamanho de fonte do sistema.

Se fontScale for false (ex: via .pwsem), a escala de fonte do sistema é removida.

Consulta o DimenCache globalmente.

Dynamically scaled TextUnit value.

Screen dimension qualifier.

Whether to respect the user’s system font scale.

Orientation-based dimension swap rule.

If true, returns base value unscaled when in split-screen.

If true, applies the aspect-ratio multiplier.

Custom AR sensitivity constant.