Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.compose.ui.state

Enums

ToggleableState

Enum that represents possible toggleable states.

Top-level functions summary

ToggleableState

Return corresponding ToggleableState based on a Boolean representation

Top-level functions

ToggleableState

fun ToggleableState(value: Boolean): ToggleableState

Return corresponding ToggleableState based on a Boolean representation

Parameters
value: Boolean whether the ToggleableState is on or off