Class AudioDeviceConnectionChangedEventArgs

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.dll

    Provides data for the DeviceConnectionChanged event. This event is triggered when there is a change in the connection status of an audio device, such as when a device is connected or disconnected from the system. The AudioDeviceConnectionChangedEventArgs class encapsulates information about the device involved in the connection change and its current connection state, allowing developers to easily respond to changes in the audio subsystem and update application behavior accordingly.

    public class AudioDeviceConnectionChangedEventArgs : EventArgs
    Inheritance
    object
    System.EventArgs
    AudioDeviceConnectionChangedEventArgs

    Properties

    View Source

    Device

    Gets the device that is involved in the connection change. This property returns an instance of AudioDevice, which represents the specific audio device that has been connected or disconnected. This information is essential for applications that need to manage multiple audio devices, allowing them to identify the affected device and adjust their functionality accordingly.

    Declaration
    public AudioDevice Device { get; }
    Property Value
    Type Description
    AudioDevice

    The AudioDevice.

    View Source

    IsConnected

    Gets the current connection state of the device. This property indicates whether the audio device is currently connected to the system. It will return true if the device is connected and false if it has been disconnected. This information is crucial for determining the audio routing and playback options, enabling applications to appropriately react to the presence or absence of audio devices in the environment.

    Declaration
    public bool IsConnected { get; }
    Property Value
    Type Description
    bool

    true if the device is connected; otherwise, false.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX