Added in API level 9

OnControlStatusChangeListener


interface 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 Unit
onControlStatusChange(effect: AudioEffect!, controlGranted: Boolean)

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
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.