{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ToggleableStateKt

public final class ToggleableStateKt


Summary

Public methods

static final @NonNull ToggleableState
ToggleableState(boolean value)

Return corresponding ToggleableState based on a Boolean representation

Public methods

ToggleableState

public static final @NonNull ToggleableState ToggleableState(boolean value)

Return corresponding ToggleableState based on a Boolean representation

Parameters
boolean value

whether the ToggleableState is on or off