Added in API level 31
OnCommunicationDeviceChangedListener
interface OnCommunicationDeviceChangedListener
android.media.AudioManager.OnCommunicationDeviceChangedListener |
Listener registered by client to be notified upon communication audio device change. See setCommunicationDevice(android.media.AudioDeviceInfo)
.
Summary
Public methods | |
---|---|
abstract Unit |
onCommunicationDeviceChanged(device: AudioDeviceInfo?) Callback method called upon communication audio device change. |
Public methods
onCommunicationDeviceChanged
Added in API level 31
abstract fun onCommunicationDeviceChanged(device: AudioDeviceInfo?): Unit
Callback method called upon communication audio device change.
Parameters | |
---|---|
device |
AudioDeviceInfo?: the audio device requested for communication use cases. Can be null on platforms not supporting android.content.pm.PackageManager#FEATURE_TELEPHONY . |