register For Volume Control
open fun registerForVolumeControl(@NonNull volumeControlListener: STWVolumeControlListener)
Content copied to clipboard
Call this method to register for callbacks when volume control stream is recommended to be changed Note that : By default, for PTT VoIP calls, audio mode used is MODE_NORMAL. In this case, default volume control stream used by system is not STREAM_VOICE_CALL. * To force activity to control volume stream for ongoing VoIP session : activity.setVolumeControlStream(AudioManager.USE_DEFAULT_STREAM_TYPE); * To reset volume control stream : activity.setVolumeControlStream(AudioManager.STREAM_VOICE_CALL); See: needChangeVolumeControlToStreamVoiceCall
Parameters
volume Control Listener