addListener

abstract fun addListener(listener: AudioEndPointDetector.OnStateChangedListener)

Add a listener to be called when a state changed.

Parameters

listener

the listener that added