Function

setProgress

Action to set the current value of the progress bar.

setProgress

Source set: Common
public fun SemanticsPropertyReceiver.setProgress(
    label: String? = null,
    action: ((Float) -> Boolean)?,
): Unit

Action to set the current value of the progress bar.

Expected to be used in conjunction with progressBarRangeInfo.

Parameters

label Optional label for this action.
action Action to be performed when the SemanticsActions.SetProgress is called.
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: