MediaDevice.DefaultAudioCaptureDeviceChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更改默认音频捕获设备时引发。
// Register
static event_token DefaultAudioCaptureDeviceChanged(TypedEventHandler<IInspectable, DefaultAudioCaptureDeviceChangedEventArgs const&> const& handler) const;
// Revoke with event_token
static void DefaultAudioCaptureDeviceChanged(event_token const* cookie) const;
// Revoke with event_revoker
static MediaDevice::DefaultAudioCaptureDeviceChanged_revoker DefaultAudioCaptureDeviceChanged(auto_revoke_t, TypedEventHandler<IInspectable, DefaultAudioCaptureDeviceChangedEventArgs const&> const& handler) const;
public static event TypedEventHandler<object,DefaultAudioCaptureDeviceChangedEventArgs> DefaultAudioCaptureDeviceChanged;
function onDefaultAudioCaptureDeviceChanged(eventArgs) { /* Your code */ }
Windows.Media.Devices.MediaDevice.addEventListener("defaultaudiocapturedevicechanged", onDefaultAudioCaptureDeviceChanged);
Windows.Media.Devices.MediaDevice.removeEventListener("defaultaudiocapturedevicechanged", onDefaultAudioCaptureDeviceChanged);
- or -
Windows.Media.Devices.MediaDevice.ondefaultaudiocapturedevicechanged = onDefaultAudioCaptureDeviceChanged;
Public Shared Custom Event DefaultAudioCaptureDeviceChanged As TypedEventHandler(Of Object, DefaultAudioCaptureDeviceChangedEventArgs)
事件类型
TypedEventHandler<Object,DefaultAudioCaptureDeviceChangedEventArgs>
TypedEventHandler<IInspectable,DefaultAudioCaptureDeviceChangedEventArgs>