Android 12 Developer Preview is here! Try it out, and give us your feedback!

Generic

class Generic : Outline
kotlin.Any
   ↳ androidx.compose.ui.graphics.Outline
   ↳ androidx.compose.ui.graphics.Outline.Generic

An area defined as a path.

Note that only convex paths can be used for drawing the shadow. See Path.isConvex.

Summary

Public constructors
<init>(path: Path)

An area defined as a path.

Public methods
Boolean
equals(other: Any?)

Int

Properties
Rect

Return the bounds of the outline

Path

Public constructors

<init>

Generic(path: Path)

An area defined as a path.

Note that only convex paths can be used for drawing the shadow. See Path.isConvex.

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

Properties

bounds

val bounds: Rect

Return the bounds of the outline

path

val path: Path