unregisterAudioSpectrumObserver abstract method

void unregisterAudioSpectrumObserver(
  1. AudioSpectrumObserver observer
)

Unregisters the audio spectrum observer.

After calling registerAudioSpectrumObserver, if you want to unregister the audio spectrum observer, call this method. This method can be called before or after joining a channel.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

void unregisterAudioSpectrumObserver(AudioSpectrumObserver observer);