AppDimensProvider
August 13, 2026 · View on GitHub
//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.core/AppDimensProvider
AppDimensProvider
fun AppDimensProvider(content: () -> Unit)
EN Provider that automatically computes and provides the UiModeType (including foldables) and, since 3.1.8, the per-composition DimenMetrics snapshot via LocalDimenMetrics to all child components. The snapshot is keyed on the semantic configuration fields (size, density, font scale, orientation, uiMode, multi-window), so every dimension in the composition resolves on one coherent window snapshot. Recommended for performance: without it, getCurrentUiModeType falls back to UiModeType.fromConfiguration on every *Mode / *Screen facilitator call.
PT Provedor que computa e fornece o UiModeType (incl. dobráveis) e, desde a 3.1.8, o snapshot DimenMetrics via LocalDimenMetrics.