appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.code.fill/toDynamicFillSp

toDynamicFillSp

@JvmOverloadsfun Number.toDynamicFillSp(context: Context, qualifier: DpQualifier, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Converts an Int (base Sp) to a dynamically scaled Sp value (as Float).

The scaled Sp value as Float.

Bulk / init: see toDynamicFillSpPx for DimenCache.getBatch and DimenFillSp.warmupCache.

The Android context to access configuration and density.

The screen qualifier used for scaling (sw, h, w).

Whether to respect the system font scale.

The inverter logic to apply.

Whether to ignore multi-window mode.

If true, applies the aspect-ratio multiplier.

Override for the AR sensitivity constant (null = library default).