# BassBoost.OnParameterChangeListener

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

# OnParameterChangeListener

*** ** * ** ***

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

```
interface OnParameterChangeListener
```

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

The OnParameterChangeListener interface defines a method called by the BassBoost 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/BassBoost.OnParameterChangeListener#onParameterChange(android.media.audiofx.BassBoost,%20kotlin.Int,%20kotlin.Int,%20kotlin.Short))`(`effect:` `[BassBoost](https://developer.android.com/reference/kotlin/android/media/audiofx/BassBoost)!`, `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: BassBoost!, 
    status: Int, 
    param: Int, 
    value: Short
): 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 BassBoost engine.

|                                                                                                                     Parameters                                                                                                                      ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `effect` | [BassBoost](https://developer.android.com/reference/kotlin/android/media/audiofx/BassBoost)!:the BassBoost 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/BassBoost#PARAM_STRENGTH:kotlin.Int)... |
| `value`  | [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html):the new parameter value.                                                                                                                                   |