{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

Outline.Generic

public final class Outline.Generic extends Outline

java.lang.Object
   ↳ androidx.compose.ui.graphics.Outline
     ↳ androidx.compose.ui.graphics.Outline.Generic

An area defined as a path.

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.

Summary

Public constructors

Public methods

boolean
equals(Object other)
@NonNull Rect

Return the bounds of the outline

final @NonNull Path
int

Public constructors

Generic

public Generic(@NonNull Path path)

Public methods

equals

public boolean equals(Object other)

getBounds

public @NonNull Rect getBounds()

Return the bounds of the outline

getPath

public final @NonNull Path getPath()

hashCode

public int hashCode()