Property

ToggleableStateKey

This key is used to access the current checked value for actions that are triggered by compound button interactions (e.g.

Source set: Android
public val ToggleableStateKey: ActionParameters.Key<Boolean> =
    ActionParameters.Key<Boolean>(RemoteViews.EXTRA_CHECKED)

This key is used to access the current checked value for actions that are triggered by compound button interactions (e.g. androidx.glance.appwidget.CheckBox, androidx.glance.appwidget.Switch). This key is used to retrieve the value from the ActionParameters passed to the action.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: