Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# SeekBar.OnSeekBarChangeListener

*** ** * ** ***


`
public
static


interface
SeekBar.OnSeekBarChangeListener
`


`


`

|---|
| android.widget.SeekBar.OnSeekBarChangeListener |

<br />

*** ** * ** ***

A callback that notifies clients when the progress level has been
changed. This includes changes that were initiated by the user through a
touch gesture or arrow key/trackball as well as changes that were initiated
programmatically.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener#onProgressChanged(android.widget.SeekBar,%20int,%20boolean)(https://developer.android.com/reference/android/widget/SeekBar seekBar, int progress, boolean fromUser) ` Notification that the progress level has changed. |
| ` abstract void` | ` https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener#onStartTrackingTouch(android.widget.SeekBar)(https://developer.android.com/reference/android/widget/SeekBar seekBar) ` Notification that the user has started a touch gesture. |
| ` abstract void` | ` https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener#onStopTrackingTouch(android.widget.SeekBar)(https://developer.android.com/reference/android/widget/SeekBar seekBar) ` Notification that the user has finished a touch gesture. |

## Public methods

### onProgressChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onProgressChanged (SeekBar seekBar, 
                int progress, 
                boolean fromUser)
```

Notification that the progress level has changed. Clients can use the fromUser parameter
to distinguish user-initiated changes from those that occurred programmatically.

<br />

| Parameters ||
|---|---|
| `seekBar` | `SeekBar`: The SeekBar whose progress has changed <br /> |
| `progress` | `int`: The current progress level. This will be in the range min..max where min and max were set by `https://developer.android.com/reference/android/widget/ProgressBar#setMin(int)` and `https://developer.android.com/reference/android/widget/ProgressBar#setMax(int)`, respectively. (The default values for min is 0 and max is 100.) <br /> |
| `fromUser` | `boolean`: True if the progress change was initiated by the user. <br /> |

### onStartTrackingTouch

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onStartTrackingTouch (SeekBar seekBar)
```

Notification that the user has started a touch gesture. Clients may want to use this
to disable advancing the seekbar.

<br />

| Parameters ||
|---|---|
| `seekBar` | `SeekBar`: The SeekBar in which the touch gesture began <br /> |

### onStopTrackingTouch

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onStopTrackingTouch (SeekBar seekBar)
```

Notification that the user has finished a touch gesture. Clients may want to use this
to re-enable advancing the seekbar.

<br />

| Parameters ||
|---|---|
| `seekBar` | `SeekBar`: The SeekBar in which the touch gesture began <br /> |