Interface

Shape

Defines a generic shape.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
interface Shape

Defines a generic shape.

Functions

createOutline

fun createOutline(size: Size, layoutDirection: LayoutDirection, density: Density): Outline

Creates Outline of this shape for the given size.

Parameters

size the size of the shape boundary.
layoutDirection the current layout direction.
density the current density of the screen.

Returns

Outline of this shape for the given size.