public class AudioDeviceChangeType extends Object
Constants in this class can be passed to reason in
AudioDeviceChangeObserver#onAudioDeviceChange(int reason, AudioDeviceDescriptor[] devices) to specify why
the state of an audio device changes.
SystemCapability.Multimedia#AUDIO| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
DEVICE_AVAILABLE |
Indicates that one or more devices are connected.
|
static int |
DEVICE_UNAVAILABLE |
Indicates that one or more devices are disconnected.
|