Stay organized with collections
Save and categorize content based on your preferences.
OnParameterChangeListener
interface OnParameterChangeListener
The OnParameterChangeListener interface defines a method called by the Equalizer when a parameter value has changed.
Summary
Public methods |
abstract Unit |
Method called when a parameter value has changed.
|
Public methods
onParameterChange
abstract fun onParameterChange(
effect: Equalizer!,
status: Int,
param1: Int,
param2: Int,
value: Int
): Unit
Method called when a parameter value has changed. The method is called only if the parameter was changed by another application having the control of the same Equalizer engine.
Parameters |
effect |
Equalizer!: the Equalizer on which the interface is registered. |
status |
Int: status of the set parameter operation. |
param1 |
Int: ID of the modified parameter. See PARAM_BAND_LEVEL ... |
param2 |
Int: additional parameter qualifier (e.g the band for band level parameter). |
value |
Int: the new parameter value. |
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-02-10 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-02-10 UTC."],[],[],null,["# Equalizer.OnParameterChangeListener\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnParameterChangeListener\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/audiofx/Equalizer.OnParameterChangeListener \"View this page in Java\") \n\n```\ninterface OnParameterChangeListener\n```\n\n|----------------------------------------------------------------|\n| [android.media.audiofx.Equalizer.OnParameterChangeListener](#) |\n\nThe OnParameterChangeListener interface defines a method called by the Equalizer when a parameter value has changed.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onParameterChange](#onParameterChange(android.media.audiofx.Equalizer,%20kotlin.Int,%20kotlin.Int,%20kotlin.Int,%20kotlin.Int))`(`effect:` `[Equalizer](/reference/kotlin/android/media/audiofx/Equalizer)!`, `status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `param1:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `param2:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Method called when a parameter value has changed. |\n\nPublic methods\n--------------\n\n### onParameterChange\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onParameterChange(\n effect: Equalizer!, \n status: Int, \n param1: Int, \n param2: Int, \n value: Int\n): Unit\n```\n\nMethod called when a parameter value has changed. The method is called only if the parameter was changed by another application having the control of the same Equalizer engine.\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `effect` | [Equalizer](/reference/kotlin/android/media/audiofx/Equalizer)!: the Equalizer on which the interface is registered. |\n| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): status of the set parameter operation. |\n| `param1` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): ID of the modified parameter. See [PARAM_BAND_LEVEL](/reference/kotlin/android/media/audiofx/Equalizer#PARAM_BAND_LEVEL:kotlin.Int) ... |\n| `param2` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): additional parameter qualifier (e.g the band for band level parameter). |\n| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the new parameter value. |"]]