Note that if you use this path for drawing the shadow on Android versions less than 10 the shadow will not be drawn for the concave paths. See Path.isConvex.
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.
[[["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-05-15 UTC."],[],[],null,["# Outline.Generic\n===============\n\nArtifact: [androidx.compose.ui:ui-graphics](/jetpack/androidx/releases/compose-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+class:androidx.compose.ui.graphics.Outline.Generic) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0)\nCommon/AllAndroid/JVM\n - Cmn \n\n ```\n class Outline.Generic : Outline\n``` \n\n|---|---|----------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.compose.ui.graphics.Outline](/reference/kotlin/androidx/compose/ui/graphics/Outline) ||\n| | ↳ | [androidx.compose.ui.graphics.Outline.Generic](/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic) |\n\n*** ** * ** ***\n\nAn area defined as a path.\n\nNote that if you use this path for drawing the shadow on Android versions less than 10 the shadow will not be drawn for the concave paths. See [Path.isConvex](/reference/kotlin/androidx/compose/ui/graphics/Path#isConvex()).\n\nSummary\n-------\n\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [Generic](/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic#Generic(androidx.compose.ui.graphics.Path))`(path: `[Path](/reference/kotlin/androidx/compose/ui/graphics/Path)`)` | Cmn |\n\n| ### Public properties |\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|-----|\n| `open `[Rect](/reference/kotlin/androidx/compose/ui/geometry/Rect) | [bounds](/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic#bounds()) Return the bounds of the outline | Cmn |\n| [Path](/reference/kotlin/androidx/compose/ui/graphics/Path) | [path](/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic#path()) | Cmn |\n\nPublic constructors\n-------------------\n\n### Generic\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \n\n```\nGeneric(path: Path)\n```\n\nPublic properties\n-----------------\n\n### bounds\n\nCmn \n\n```\nopen val bounds: Rect\n```\n\nReturn the bounds of the outline \n\n### path\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \n\n```\nval path: Path\n```"]]