Class BluetoothAudio

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/bluetooth

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

C#
Copy
public class BluetoothAudio : BluetoothProfile
Inheritance
BluetoothAudio

Properties

View Source

IsAgScoOpened

A property to check whether an opened AG(Audio Gateway) SCO(Synchronous Connection Oriented link) exists or not.

Declaration
C#
Copy
public static bool IsAgScoOpened { get; }
Property Value
Type Description
Boolean
API Level: 6
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.audio.call

Methods

View Source

CloseAgSco()

Closes a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to the connected remote device asynchronously.

Declaration
C#
Copy
public static void CloseAgSco()
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.audio.call
View Source

Connect(BluetoothAudioProfileType)

Connects the remote device with the given audio profile.

Declaration
C#
Copy
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 Level: 3
View Source

Disconnect(BluetoothAudioProfileType)

Disconnects the remote device with the given audio profile.

Declaration
C#
Copy
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 Level: 3
View Source

NotifyAgVoiceRecognitionState(Boolean)

Notifies the state of AG(Audio Gateway) voice recognition to the connected remote device.

Declaration
C#
Copy
public static void NotifyAgVoiceRecognitionState(bool enable)
Parameters
Type Name Description
Boolean enable

The state of voice recognition. It is true if voice recognition state is enabled.

API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.audio.call
View Source

OpenAgSco()

Opens a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to the connected remote device asynchronously.

Declaration
C#
Copy
public static void OpenAgSco()
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.audio.call

Events

View Source

AgScoStateChanged

This event is called when the AG(Audio Gateway) SCO(Synchronous Connection Oriented link) state is changed.

Declaration
C#
Copy
public static event EventHandler<AgScoStateChangedEventArgs> AgScoStateChanged
Event Type
Type Description
EventHandler<AgScoStateChangedEventArgs>
API Level: 6
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.audio.call
View Source

AudioConnectionStateChanged

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

Declaration
C#
Copy
public event EventHandler<AudioConnectionStateChangedEventArgs> AudioConnectionStateChanged
Event Type
Type Description
EventHandler<AudioConnectionStateChangedEventArgs>
API Level: 3

Extension Methods