---
title: "setProgress"
description: "Action to set the current value of the progress bar.

Expected to be used in conjunction with progressBarRangeInfo."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsPropertyReceiver.setProgress(label: String? = null, action: ((Float) -> Boolean)?)
```


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. |




