fromConfiguration

fun fromConfiguration(uiMode: Int): UiModeType

EN Maps the UI mode mask from the Android Configuration to the UiModeType enum.

PT Mapeia a máscara de modo de UI da Configuração do Android para o enum UiModeType.

Return

The corresponding UiModeType.

Parameters

uiMode

The 'uiMode' field of the Configuration.