MediaDevice.DefaultAudioCaptureDeviceChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when the default audio capture device is changed.
// 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)
Event Type
TypedEventHandler<Object,DefaultAudioCaptureDeviceChangedEventArgs>
TypedEventHandler<IInspectable,DefaultAudioCaptureDeviceChangedEventArgs>