Class

FractionalThreshold

A fractional threshold will be at a fraction of the way between the two anchors.

Source set: Common
@Deprecated(SwipeableDeprecation)
public data class FractionalThreshold(
    /*@FloatRange(from = 0.0, to = 1.0)*/
    private val fraction: Float
) : ThresholdConfig

A fractional threshold will be at a fraction of the way between the two anchors.

Parameters

fraction The fraction (between 0 and 1) that the threshold will be at.

Functions

computeThreshold

Source set: Common
override fun Density.computeThreshold(fromValue: Float, toValue: Float): Float
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: