Introducing Composables One: Universal Components for Compose UI ->
Composables
Glance App Widget
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Documentation
Theming
Unstyled Components
Universal Components
Blog
Component Catalogue
Jetpack Compose Reference
Getting Started
Overview
Installation
Components
Concepts
Custom Themes
Android XML Themes
Dynamic Themes
Theme Overrides
Modifiers
buildModifier
focusRing
outline
Components
Bottom Sheet
Bottom Sheet (Modal)
Button
Checkbox
Checkbox (TriState)
Dialog
Disclosure
Dropdown Menu
Icon
Modal
Progress Indicator
Radio Group
Scroll Area
Separators
Slider
Tab Group
Text
Text Field
Toggle Switch
UI Kit
Docs
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Blog 870+
Compose UnstyledJetpack Compose API ReferenceUI KitBlog
Composable Functions
  • AndroidRemoteViews
  • CheckBox
  • CircleIconButton
  • CircularProgressIndicator
  • FilledButton
  • LazyColumn
  • LazyVerticalGrid
  • LinearProgressIndicator
  • OutlineButton
  • RadioButton
  • Scaffold
  • SquareIconButton
  • Switch
  • TitleBar
Classes
  • ActionCallbackBroadcastReceiver
  • ActionTrampolineActivity
  • CheckBoxColors
  • ExperimentalGlanceRemoteViewsApi
  • GlanceAppWidget
  • GlanceAppWidgetManager
  • GlanceAppWidgetReceiver
  • GlanceRemoteViews
  • GlanceRemoteViewsService
  • GridCells
  • InvisibleActionTrampolineActivity
  • LazyScopeMarker
  • MyPackageReplacedReceiver
  • RadioButtonColors
  • RemoteViewsCompositionResult
  • SwitchColors
  • UnmanagedSessionReceiver
Interfaces
  • ActionCallback
  • LazyItemScope
  • LazyListScope
  • LazyVerticalGridScope
  • PreviewSizeMode
  • SizeMode
Properties
  • LocalAppWidgetOptions
  • ToggleableStateKey
Functions
  • actionRunCallback
  • actionSendBroadcast
  • actionStartActivity
  • actionStartService
  • appWidgetBackground
  • background
  • compose
  • composeForPreview
  • cornerRadius
  • getAppWidgetState
  • ImageProvider
  • items
  • itemsIndexed
  • provideContent
  • runComposition
  • selectableGroup
  • setWidgetPreviews
  • updateAll
  • updateAppWidgetState
  • updateIf
Compose API Reference Glance App Widget

SwitchColors

Class

Android
public sealed class SwitchColors

Set of colors to apply to a Switch depending on the checked state.

    On this page
Sponsored By
by @alexstyl