Stay organized with collections
Save and categorize content based on your preferences.
OnControlStatusChangeListener
interface OnControlStatusChangeListener
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 Unit |
Called on the listener to notify it that the effect engine control has been taken or returned.
|
Public methods
onControlStatusChange
abstract fun onControlStatusChange(
effect: AudioEffect!,
controlGranted: Boolean
): Unit
Called on the listener to notify it that the effect engine control has been taken or returned.
Parameters |
effect |
AudioEffect!: the effect on which the interface is registered. |
controlGranted |
Boolean: true if the application has been granted control of the effect engine, false otherwise. |
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,["# AudioEffect.OnControlStatusChangeListener\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnControlStatusChangeListener\n=============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/audiofx/AudioEffect.OnControlStatusChangeListener \"View this page in Java\") \n\n```\ninterface OnControlStatusChangeListener\n```\n\n|----------------------------------------------------------------------|\n| [android.media.audiofx.AudioEffect.OnControlStatusChangeListener](#) |\n\nThe OnControlStatusChangeListener interface defines a method called by the AudioEffect when control of the effect engine is gained or lost by the application\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onControlStatusChange](#onControlStatusChange(android.media.audiofx.AudioEffect,%20kotlin.Boolean))`(`effect:` `[AudioEffect](/reference/kotlin/android/media/audiofx/AudioEffect)!`, `controlGranted:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Called on the listener to notify it that the effect engine control has been taken or returned. |\n\nPublic methods\n--------------\n\n### onControlStatusChange\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onControlStatusChange(\n effect: AudioEffect!, \n controlGranted: Boolean\n): Unit\n```\n\nCalled on the listener to notify it that the effect engine control has been taken or returned.\n\n| Parameters ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `effect` | [AudioEffect](/reference/kotlin/android/media/audiofx/AudioEffect)!: the effect on which the interface is registered. |\n| `controlGranted` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html): true if the application has been granted control of the effect engine, false otherwise. |"]]