public abstract class AudioDeviceCallback
extends Object
java.lang.Object | |
↳ | android.media.AudioDeviceCallback |
AudioDeviceCallback定义了应用程序可以接收音频设备连接和断开事件通知的机制。
Public constructors |
|
---|---|
AudioDeviceCallback() |
Public methods |
|
---|---|
void |
onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) 由 |
void |
onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) 由 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
void onAudioDevicesAdded (AudioDeviceInfo[] addedDevices)
由 AudioManager
调用以指示已连接一个或多个音频设备。
Parameters | |
---|---|
addedDevices |
AudioDeviceInfo : An array of AudioDeviceInfo objects corresponding to any newly added audio devices. |
void onAudioDevicesRemoved (AudioDeviceInfo[] removedDevices)
由 AudioManager
调用以指示一个或多个音频设备已断开连接。
Parameters | |
---|---|
removedDevices |
AudioDeviceInfo : An array of AudioDeviceInfo objects corresponding to any newly removed audio devices. |