DeviceShape

sealed interface DeviceShape

Represents the shape of a device.

This sealed interface allows defining different shapes for devices. Each shape can be converted to a Shape used in Jetpack Compose.

Inheritors

Types

Link copied to clipboard
data object Circular : DeviceShape

Represents a circular shape for the device.

Link copied to clipboard
data object Rectangle : DeviceShape

Represents a rectangular shape for the device.

Link copied to clipboard
data class RectangleRounded(val roundness: Dp) : DeviceShape

Represents a rectangle with rounded corners.

Functions

Link copied to clipboard
open fun asShape(): Shape

Converts the DeviceShape to a Shape used in Jetpack Compose.