set Status Bar Color
abstract fun setStatusBarColor(color: Color, darkIcons: Boolean = color.luminance() > 0.5f, transformColorForLightContent: (Color) -> Color = BlackScrimmed)
Content copied to clipboard
Set the status bar color.
See also
Parameters
color
The desiredColor to set. This may require modification if running on an API level that only supports white status bar icons.
darkIcons
Whether dark status bar icons would be preferable.
transformColorForLightContent
A lambda which will be invoked to transform color if dark icons were requested but are not available. Defaults to applying a black scrim.