setLightStatusBar

open fun setLightStatusBar(@NonNull window: Window, isLight: Boolean)

Changes the foreground color of the status bars to light or dark so that the items on the bar can be read clearly.

Parameters

window

Window that hosts the status bars

isLight

true to make the foreground color light