# Print output for @column tags ?> AudioDeviceCallback - Android SDK | Android Developers

Most visited

Recently visited

AudioDeviceCallback

public abstract class AudioDeviceCallback
extends Object

java.lang.Object
   ↳ android.media.AudioDeviceCallback


AudioDeviceCallback defines the mechanism by which applications can receive notifications of audio device connection and disconnection events.

See also:

Summary

Public constructors

AudioDeviceCallback()

Public methods

void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices)

Called by the AudioManager to indicate that one or more audio devices have been connected.

void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices)

Called by the AudioManager to indicate that one or more audio devices have been disconnected.

Inherited methods

Public constructors

AudioDeviceCallback

public AudioDeviceCallback ()

Public methods

onAudioDevicesAdded

public void onAudioDevicesAdded (AudioDeviceInfo[] addedDevices)

Called by the AudioManager to indicate that one or more audio devices have been connected.

Parameters
addedDevices AudioDeviceInfo: An array of AudioDeviceInfo objects corresponding to any newly added audio devices.

onAudioDevicesRemoved

public void onAudioDevicesRemoved (AudioDeviceInfo[] removedDevices)

Called by the AudioManager to indicate that one or more audio devices have been disconnected.

Parameters
removedDevices AudioDeviceInfo: An array of AudioDeviceInfo objects corresponding to any newly removed audio devices.