getUiModeManager

fun Context.getUiModeManager(): UiModeManager

See also

android.app.UiModeManager