prsdpMode

April 11, 2026 ยท View on GitHub

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

prsdpMode

@JvmOverloadsfun Number.prsdpMode(context: Context, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Extension for Int with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches the specified uiModeType, it uses modeValue instead.