Stay organized with collections
Save and categorize content based on your preferences.
DurationScaleChangeListener
interface DurationScaleChangeListener
Listener interface for the system-wide scaling factor for Animator-based animations.
Summary
Public methods |
abstract Unit |
Called when the duration scale changes.
|
Public methods
onChanged
abstract fun onChanged(scale: Float): Unit
Called when the duration scale changes.
Parameters |
scale |
Float: the duration scale Value is 0.0f or greater |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# ValueAnimator.DurationScaleChangeListener\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDurationScaleChangeListener\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/animation/ValueAnimator.DurationScaleChangeListener \"View this page in Java\") \n\n```\ninterface DurationScaleChangeListener\n```\n\n|------------------------------------------------------------------|\n| [android.animation.ValueAnimator.DurationScaleChangeListener](#) |\n\nListener interface for the system-wide scaling factor for Animator-based animations.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onChanged](#onChanged(kotlin.Float))`(`scale:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` Called when the duration scale changes. |\n\nPublic methods\n--------------\n\n### onChanged\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onChanged(scale: Float): Unit\n```\n\nCalled when the duration scale changes.\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------|\n| `scale` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): the duration scale Value is 0.0f or greater |"]]