ResponsiveConfig

data class ResponsiveConfig(val width: Int = -1, val elevation: Float = -1.0f, val blur: ColorCurvePreset = ColorCurvePreset( SemBlurCompat.CurveParameter( -1, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f ) ), val nonBlurBGAlpha: Float = 1.0f)

Resolved dimensions and visual settings for one pane state.

Default negative width and elevation values represent an unresolved configuration, rather than usable drawer dimensions. Use the preset helpers or provide resolved values.

Constructors

Link copied to clipboard
constructor(width: Int = -1, elevation: Float = -1.0f, blur: ColorCurvePreset = ColorCurvePreset( SemBlurCompat.CurveParameter( -1, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f ) ), nonBlurBGAlpha: Float = 1.0f)

Properties

Link copied to clipboard

light and dark blur curve preset.

Link copied to clipboard

view elevation in pixels; a negative value marks it as unresolved.

Link copied to clipboard
val nonBlurBGAlpha: Float = 1.0f

background opacity when blur is not applied, from 0 to 1.

Link copied to clipboard
val width: Int

drawer width in pixels.

Functions

Link copied to clipboard

Copies this configuration's elevation, blur, and background alpha into an ElevationConcept.