Stay organized with collections
Save and categorize content based on your preferences.
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-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.glance.material\n========================\n\nTop-level functions summary\n---------------------------\n\n|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) | [ColorProviders](/reference/kotlin/androidx/glance/material/package-summary#ColorProviders(androidx.compose.material.Colors))`(colors: `[Colors](/reference/kotlin/androidx/compose/material/Colors)`)` Given Material [Colors](/reference/kotlin/androidx/compose/material/Colors), creates a [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) that can be passed to [GlanceTheme](/reference/kotlin/androidx/glance/GlanceTheme) |\n| [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) | [ColorProviders](/reference/kotlin/androidx/glance/material/package-summary#ColorProviders(androidx.compose.material.Colors,androidx.compose.material.Colors))`(light: `[Colors](/reference/kotlin/androidx/compose/material/Colors)`, dark: `[Colors](/reference/kotlin/androidx/compose/material/Colors)`)` Given Material [Colors](/reference/kotlin/androidx/compose/material/Colors), creates a [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) that can be passed to [GlanceTheme](/reference/kotlin/androidx/glance/GlanceTheme) |\n\nTop-level functions\n-------------------\n\n### ColorProviders\n\nArtifact: [androidx.glance:glance-material](/jetpack/androidx/releases/glance) \n[View Source](https://cs.android.com/search?q=file:androidx/glance/material/MaterialThemes.kt+function:ColorProviders) \nAdded in [1.0.0](/jetpack/androidx/releases/glance#1.0.0) \n\n```\nfun ColorProviders(colors: Colors): ColorProviders\n```\n\nGiven Material [Colors](/reference/kotlin/androidx/compose/material/Colors), creates a [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) that can be passed to [GlanceTheme](/reference/kotlin/androidx/glance/GlanceTheme) \n\n### ColorProviders\n\nArtifact: [androidx.glance:glance-material](/jetpack/androidx/releases/glance) \n[View Source](https://cs.android.com/search?q=file:androidx/glance/material/MaterialThemes.kt+function:ColorProviders) \nAdded in [1.0.0](/jetpack/androidx/releases/glance#1.0.0) \n\n```\nfun ColorProviders(light: Colors, dark: Colors): ColorProviders\n```\n\nGiven Material [Colors](/reference/kotlin/androidx/compose/material/Colors), creates a [ColorProviders](/reference/kotlin/androidx/glance/color/ColorProviders) that can be passed to [GlanceTheme](/reference/kotlin/androidx/glance/GlanceTheme)"]]