Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
ColorProvider |
Provider of colors for a glance composable's attributes.
|
Top-level functions summary
Top-level functions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],[],null,["androidx.glance.unit\n\nInterfaces \n\n|-----------------------------------------------------------------------|----------------------------------------------------------|\n| [ColorProvider](/reference/kotlin/androidx/glance/unit/ColorProvider) | Provider of colors for a glance composable's attributes. |\n\nTop-level functions summary \n\n|-----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ColorProvider](/reference/kotlin/androidx/glance/unit/ColorProvider) | [ColorProvider](/reference/kotlin/androidx/glance/unit/package-summary#ColorProvider(androidx.compose.ui.graphics.Color))`(color: `[Color](/reference/kotlin/androidx/compose/ui/graphics/Color)`)` Returns a [ColorProvider](/reference/kotlin/androidx/glance/unit/ColorProvider) that always resolves to the [Color](/reference/kotlin/androidx/compose/ui/graphics/Color). |\n\nTop-level functions \n\nColorProvider \nArtifact: [androidx.glance:glance](/jetpack/androidx/releases/glance) \n[View Source](https://cs.android.com/search?q=file:androidx/glance/unit/ColorProvider.kt+function:ColorProvider) \nAdded in [1.2.0-beta01](/jetpack/androidx/releases/glance#1.2.0-beta01) \n\n```\nfun ColorProvider(color: Color): ColorProvider\n```\n\nReturns a [ColorProvider](/reference/kotlin/androidx/glance/unit/ColorProvider) that always resolves to the [Color](/reference/kotlin/androidx/compose/ui/graphics/Color)."]]