Function

progress

The fraction of the offset between from and to, as a fraction between [0f..1f], or 1f if from is equal to to.

progress

Source set: Common
public fun progress(from: T, to: T): Float

The fraction of the offset between from and to, as a fraction between 0f..1f, or 1f if from is equal to to.

Parameters

from The starting value used to calculate the distance
to The end value used to calculate the distance
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: