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