SheetDetent

class SheetDetent(val identifier: String, val calculateDetentHeight: (containerHeight: Dp, sheetHeight: Dp) -> Dp)

A detent represents a stopping point for a bottom sheet.

Constructors

Link copied to clipboard
constructor(identifier: String, calculateDetentHeight: (containerHeight: Dp, sheetHeight: Dp) -> Dp)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val calculateDetentHeight: (containerHeight: Dp, sheetHeight: Dp) -> Dp

A function that calculates the height of this detent based on the container and sheet heights.

Link copied to clipboard

A unique identifier for this detent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int