appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.common/UiModeType/Companion/fromConfiguration

fromConfiguration

fun fromConfiguration(context: Context, foldingFeature: ERROR CLASS: Symbol not found for androidx.window.layout.FoldingFeature?? = null): UiModeType

EN Returns the UiModeType corresponding to the Configuration.uiMode value, taking into account physical foldable features using Jetpack WindowManager.

PT Retorna o UiModeType correspondente ao valor de Configuration.uiMode, levando em conta características físicas de dispositivos dobráveis usando Jetpack WindowManager.

Application context.

Optional FoldingFeature obtained from WindowInfoTracker to dynamically adapt.