Show / Hide Table of Contents

    Class BluetoothAudio

    This class is used to handle the connection with other Bluetooth audio devices like headset, hands-free, and headphone.

    Inheritance
    Object
    BluetoothProfile
    BluetoothAudio
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Tizen.Network.Bluetooth
    Assembly: Tizen.Network.Bluetooth.dll
    Syntax
    public class BluetoothAudio : BluetoothProfile
    Privilege Level
    public
    Privilege

    http://tizen.org/privilege/bluetooth

    Methods

    Connect(BluetoothAudioProfileType)

    Connects the remote device with the given audio profile.

    Declaration
    public void Connect(BluetoothAudioProfileType profileType)
    Parameters
    Type Name Description
    BluetoothAudioProfileType profileType

    The type of the audio profile.

    Remarks

    The device must be bonded with the remote device by CreateBond(). If connection request succeeds, the AudioConnectionStateChanged event will be invoked. If audio profile type is All and this request succeeds, then the AudioConnectionStateChanged event will be called twice when HspHfp
    and AdvancedAudioDistribution is connected.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the Bluetooth is not supported.

    InvalidOperationException

    Thrown when the Bluetooth is not enabled or when the connection attempt fails.

    Disconnect(BluetoothAudioProfileType)

    Disconnects the remote device with the given audio profile.

    Declaration
    public void Disconnect(BluetoothAudioProfileType type)
    Parameters
    Type Name Description
    BluetoothAudioProfileType type

    The type of the audio profile.

    Remarks

    The device must be connected by Connect(). If the disconnection request succeeds, the AudioConnectionStateChanged event will be invoked. If audio profile type is All and this request succeeds, then the AudioConnectionStateChanged event will be called twice when HspHfp
    and AdvancedAudioDistribution is disconnected.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the Bluetooth is not supported.

    InvalidOperationException

    Thrown when the Bluetooth is not enabled or when Disconnection attempt fails.

    Events

    AudioConnectionStateChanged

    The AudioConnectionStateChanged event is called when the audio connection state is changed.

    Declaration
    public event EventHandler<AudioConnectionStateChangedEventArgs> AudioConnectionStateChanged
    Event Type
    Type Description
    EventHandler<AudioConnectionStateChangedEventArgs>
    API Version
    3
    Back to top Copyright © 2016-2018 Samsung
    Generated by DocFX