# Virtualizer.OnParameterChangeListener

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

# OnParameterChangeListener

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/audiofx/Virtualizer.OnParameterChangeListener "View this page in Java")  

```
interface OnParameterChangeListener
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.media.audiofx.Virtualizer.OnParameterChangeListener](https://developer.android.com/reference/kotlin/android/media/audiofx/Virtualizer.OnParameterChangeListener#) |

*** ** * ** ***

| **This interface was deprecated in API level 35.**
|
| Deprecated in Java.

The OnParameterChangeListener interface defines a method called by the Virtualizer when a parameter value has changed.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                           Public methods                                                                                                                                                                                                                                                                                                                                                                           ||
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onParameterChange](https://developer.android.com/reference/kotlin/android/media/audiofx/Virtualizer.OnParameterChangeListener#onParameterChange(android.media.audiofx.Virtualizer,%20kotlin.Int,%20kotlin.Int,%20kotlin.Short))`(`effect:` `[Virtualizer](https://developer.android.com/reference/kotlin/android/media/audiofx/Virtualizer)!`, `status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `param:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `value:` `[Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)`)` Method called when a parameter value has changed. |

## Public methods

### onParameterChange

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

```
abstract fun onParameterChange(
    effect: Virtualizer!, 
    status: Int, 
    param: Int, 
    value: Short
): Unit
```

**Deprecated:** *Deprecated in Java.*

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 Virtualizer engine.

|                                                                                                                      Parameters                                                                                                                       ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `effect` | [Virtualizer](https://developer.android.com/reference/kotlin/android/media/audiofx/Virtualizer)!:the Virtualizer on which the interface is registered.                                                                                      |
| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):status of the set parameter operation.                                                                                                                           |
| `param`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):ID of the modified parameter. See[PARAM_STRENGTH](https://developer.android.com/reference/kotlin/android/media/audiofx/Virtualizer#PARAM_STRENGTH:kotlin.Int)... |
| `value`  | [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html):the new parameter value.                                                                                                                                     |