Stay organized with collections
Save and categorize content based on your preferences.
ValueAnimator.DurationScaleChangeListener
public
static
interface
ValueAnimator.DurationScaleChangeListener
android.animation.ValueAnimator.DurationScaleChangeListener
|
Listener interface for the system-wide scaling factor for Animator-based animations.
Summary
Public methods |
abstract
void
|
onChanged(float scale)
Called when the duration scale changes.
|
Public methods
onChanged
public abstract void onChanged (float scale)
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nValueAnimator.DurationScaleChangeListener\n=========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/animation/ValueAnimator.DurationScaleChangeListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nValueAnimator.DurationScaleChangeListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------|\n| android.animation.ValueAnimator.DurationScaleChangeListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener interface for the system-wide scaling factor for Animator-based animations. \n**See also:**\n\n- [ValueAnimator.registerDurationScaleChangeListener(DurationScaleChangeListener)](/reference/android/animation/ValueAnimator#registerDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener))\n- [ValueAnimator.unregisterDurationScaleChangeListener(DurationScaleChangeListener)](/reference/android/animation/ValueAnimator#unregisterDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onChanged](/reference/android/animation/ValueAnimator.DurationScaleChangeListener#onChanged(float))`(float scale) ` Called when the duration scale changes. |\n\nPublic methods\n--------------\n\n### onChanged\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onChanged (float scale)\n```\n\nCalled when the duration scale changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-------------------------------------------------------------|\n| `scale` | `float`: the duration scale Value is 0.0f or greater \u003cbr /\u003e |"]]