IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs Interface

Definition

Called when the default audio device is changed for either audio render or capture.

public : interface IDefaultAudioDeviceChangedEventArgs
struct winrt::Windows::Media::Devices::IDefaultAudioDeviceChangedEventArgs
public interface IDefaultAudioDeviceChangedEventArgs
Public Interface IDefaultAudioDeviceChangedEventArgs
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Id Id Id Id Id

Gets the ID of the newly selected audio device that raised the device change event.

public : Platform::String Id { get; }
winrt::hstring Id();
public string Id { get; }
Public ReadOnly Property Id As string
var string = iDefaultAudioDeviceChangedEventArgs.id;
Value
string string string

ID of the newly selected audio device that raised the device change event.

Role Role Role Role Role

Gets the role of the newly selected audio device that raised the device change event.

public : AudioDeviceRole Role { get; }
AudioDeviceRole Role();
public AudioDeviceRole Role { get; }
Public ReadOnly Property Role As AudioDeviceRole
var audioDeviceRole = iDefaultAudioDeviceChangedEventArgs.role;
Value
AudioDeviceRole AudioDeviceRole AudioDeviceRole

The role of the newly selected audio device that raised the device change event.

See Also

See Also