Stay organized with collections
Save and categorize content based on your preferences.
AudioEffect.OnControlStatusChangeListener
public
static
interface
AudioEffect.OnControlStatusChangeListener
android.media.audiofx.AudioEffect.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
void
|
onControlStatusChange(AudioEffect effect, boolean controlGranted)
Called on the listener to notify it that the effect engine control
has been taken or returned.
|
Public methods
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.
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAudioEffect.OnControlStatusChangeListener\n=========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/audiofx/AudioEffect.OnControlStatusChangeListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAudioEffect.OnControlStatusChangeListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------|\n| android.media.audiofx.AudioEffect.OnControlStatusChangeListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe OnControlStatusChangeListener interface defines a method called by the AudioEffect\nwhen control of the effect engine is gained or lost by the application\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onControlStatusChange](/reference/android/media/audiofx/AudioEffect.OnControlStatusChangeListener#onControlStatusChange(android.media.audiofx.AudioEffect,%20boolean))`(`[AudioEffect](/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. |\n\nPublic methods\n--------------\n\n### onControlStatusChange\n\nAdded in [API level 9](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onControlStatusChange (AudioEffect effect, \n boolean controlGranted)\n```\n\nCalled on the listener to notify it that the effect engine control\nhas been taken or returned.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|-----------------------------------------------------------------------------------------------------------|\n| `effect` | `AudioEffect`: the effect on which the interface is registered. \u003cbr /\u003e |\n| `controlGranted` | `boolean`: true if the application has been granted control of the effect engine, false otherwise. \u003cbr /\u003e |"]]