# AudioEffect.OnControlStatusChangeListener

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

# AudioEffect.OnControlStatusChangeListener

*** ** * ** ***

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

`
public
static


interface
AudioEffect.OnControlStatusChangeListener
`  
`


`

|-----------------------------------------------------------------|
| android.media.audiofx.AudioEffect.OnControlStatusChangeListener |

<br />

*** ** * ** ***

The OnControlStatusChangeListener interface defines a method called by the AudioEffect when control of the effect engine is gained or lost by the application

## Summary

|                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                   ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onControlStatusChange](https://developer.android.com/reference/android/media/audiofx/AudioEffect.OnControlStatusChangeListener#onControlStatusChange(android.media.audiofx.AudioEffect,%20boolean))`(`[AudioEffect](https://developer.android.com/reference/android/media/audiofx/AudioEffect)` effect, boolean controlGranted) ` Called on the listener to notify it that the effect engine control has been taken or returned. |

## Public methods

### onControlStatusChange

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

```
public abstract void onControlStatusChange (AudioEffect effect, 
                boolean controlGranted)
```

Called on the listener to notify it that the effect engine control has been taken or returned.

<br />

|                                                         Parameters                                                          ||
|------------------|-----------------------------------------------------------------------------------------------------------|
| `effect`         | `AudioEffect`: the effect on which the interface is registered. <br />                                    |
| `controlGranted` | `boolean`: true if the application has been granted control of the effect engine, false otherwise. <br /> |