# ValueAnimator.DurationScaleChangeListener

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

# ValueAnimator.DurationScaleChangeListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/animation/ValueAnimator.DurationScaleChangeListener "View this page in Kotlin")\|Java

`
public
static


interface
ValueAnimator.DurationScaleChangeListener
`  
`


`

|-------------------------------------------------------------|
| android.animation.ValueAnimator.DurationScaleChangeListener |

<br />

*** ** * ** ***

Listener interface for the system-wide scaling factor for Animator-based animations.  
**See also:**

- [ValueAnimator.registerDurationScaleChangeListener(DurationScaleChangeListener)](https://developer.android.com/reference/android/animation/ValueAnimator#registerDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener))
- [ValueAnimator.unregisterDurationScaleChangeListener(DurationScaleChangeListener)](https://developer.android.com/reference/android/animation/ValueAnimator#unregisterDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener))

## Summary

|                                                                                               ### Public methods                                                                                               ||
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onChanged](https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener#onChanged(float))`(float scale) ` Called when the duration scale changes. |

## Public methods

### onChanged

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

```
public abstract void onChanged (float scale)
```

Called when the duration scale changes.

<br />

|                              Parameters                              ||
|---------|-------------------------------------------------------------|
| `scale` | `float`: the duration scale Value is 0.0f or greater <br /> |