Added in API level 31
AudioManager.OnCommunicationDeviceChangedListener
public
static
interface
AudioManager.OnCommunicationDeviceChangedListener
android.media.AudioManager.OnCommunicationDeviceChangedListener |
Listener registered by client to be notified upon communication audio device change.
See AudioManager.setCommunicationDevice(android.media.AudioDeviceInfo)
.
Summary
Public methods | |
---|---|
abstract
void
|
onCommunicationDeviceChanged(AudioDeviceInfo device)
Callback method called upon communication audio device change. |
Public methods
onCommunicationDeviceChanged
Added in API level 31
public abstract void onCommunicationDeviceChanged (AudioDeviceInfo device)
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
PackageManager.FEATURE_TELEPHONY . |