IPolyAudioService

interface IPolyAudioService

Audio service exposed for PolyOs Clients

Functions

Link copied to clipboard
abstract fun getMicrophoneList(): List<Microphone>
Returns the java.util.List of available Microphone
Link copied to clipboard
abstract fun getSpeakerList(): List<Speaker>
Returns the java.util.List of available Speaker
Link copied to clipboard
abstract fun getVolume(): Int
Returns current output volume level.
Link copied to clipboard
abstract fun isMicrophoneMuted(): Boolean
Returns whether microphone is muted
Link copied to clipboard
abstract fun isMicrophoneReady(): Boolean
Check whether the microphone is ready after a system reboot
Link copied to clipboard
abstract fun muteMicrophone(mute: Boolean): Boolean
Mute or unmute the microphone
Link copied to clipboard
abstract fun registerAudioListener(listener: IPolyAudioListener)
Register a IPolyAudioListener to get call backs
Link copied to clipboard
abstract fun setVolume(volume: Int)
Set the output volume level.
Link copied to clipboard
abstract fun unRegisterAudioListener(listener: IPolyAudioListener)
Unregister a IPolyAudioListener to get call backs