applyDayNight

abstract fun applyDayNight(): Boolean(source)

Applies the currently selected night mode to this delegate's host component.

This enables the Theme.AppCompat.DayNight family of themes to work, using the specified mode.

You can be notified when the night changes by overriding the onNightModeChanged method.

Return

true if the night mode was applied, false if not

See also