Class BluetoothAvrcpControl

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
8
Feature:
http://tizen.org/feature/network.bluetooth.audio.controller

This class is used to send commands from the control device (For example, headset) to the target device (For example, media player).

C#
Copy
public class BluetoothAvrcpControl : BluetoothProfile
Inheritance
BluetoothAvrcpControl
Remarks

This class can be obtained from BluetoothDevice.GetProfile method.

Properties

View Source

EqualizerState

A property for the equalizer mode of target device.

Declaration
C#
Copy
public EqualizerState EqualizerState { get; set; }
Property Value
Type Description
EqualizerState
Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

RepeatMode

A property for the repeat mode of target device.

Declaration
C#
Copy
public RepeatMode RepeatMode { get; set; }
Property Value
Type Description
RepeatMode
Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

ScanMode

A property for the scan mode of target device.

Declaration
C#
Copy
public ScanMode ScanMode { get; set; }
Property Value
Type Description
ScanMode
Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

ShuffleMode

A property for the suffle mode of target device.

Declaration
C#
Copy
public ShuffleMode ShuffleMode { get; set; }
Property Value
Type Description
ShuffleMode
Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller

Methods

View Source

ConnectAsync()

Asynchronously connects the remote device

Declaration
C#
Copy
public Task ConnectAsync()
Returns
Type Description
Task
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

DecreaseVolume()

Decreases volume of target device

Declaration
C#
Copy
public void DecreaseVolume()
Remarks

The remote device must be connected

API Level: 8
Privilege Level: platform
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

DisconnectAsync()

Asynchronously disconnects the remote device

Declaration
C#
Copy
public Task DisconnectAsync()
Returns
Type Description
Task
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

Dispose()

Declaration
C#
Copy
public void Dispose()
View Source

Finalize()

Finalizes an instance of the BluetoothAvrcpControl class.

Declaration
C#
Copy
protected void Finalize()
View Source

GetPlayStatus()

Gets player state of the target device.

Declaration
C#
Copy
public PlayerState GetPlayStatus()
Returns
Type Description
PlayerState

Play status of the target device

Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

GetPosition()

Gets position of the track being played on the target device.

Declaration
C#
Copy
public uint GetPosition()
Returns
Type Description
UInt32

Play position of the track being played on the target device

Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

GetTrackInfo()

Gets info of the track being played on the target device.

Declaration
C#
Copy
public Track GetTrackInfo()
Returns
Type Description
Track

Info of the track being played on the target device

Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

IncreaseVolume()

Increases volume of target device

Declaration
C#
Copy
public void IncreaseVolume()
Remarks

The remote device must be connected

API Level: 8
Privilege Level: platform
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

SendDelayReport(UInt32)

Sends delay report to the target device

Declaration
C#
Copy
public void SendDelayReport(uint delay)
Parameters
Type Name Description
UInt32 delay

Delay to be sent to target

Remarks

The remote device must be connected

API Level: 8
Privilege Level: platform
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

SendPlayerCommand(PlayerCommand)

Sends a particular play command to the target device

Declaration
C#
Copy
public void SendPlayerCommand(PlayerCommand command)
Parameters
Type Name Description
PlayerCommand command

Command to be sent

Remarks

The remote device must be connected.

API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

SendPlayerCommandTo(PlayerCommand, String)

Sends a play command to a particular target device

Declaration
C#
Copy
public void SendPlayerCommandTo(PlayerCommand command, string remoteAddress)
Parameters
Type Name Description
PlayerCommand command

Command to be sent

String remoteAddress

Address of the device to send command

Remarks

The remote device must be connected.

API Level: 8
Privilege Level: platform
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetooth.audio.controller
View Source

SetAbsoluteVolume(UInt32)

Sets absolute volume of target device

Declaration
C#
Copy
public void SetAbsoluteVolume(uint volume)
Parameters
Type Name Description
UInt32 volume

The volume level to be set

Remarks

The remote device must be connected

API Level: 8
Privilege Level: platform
Privilege: http://tizen.org/privilege/bluetooth.admin
Feature: http://tizen.org/feature/network.bluetooth.audio.controller

Events

View Source

ConnectionStateChanged

The AvrcpControlConnectionChangedEventArgs event is invoked when the connection status of device is changed.

Declaration
C#
Copy
public event EventHandler<AvrcpControlConnectionChangedEventArgs> ConnectionStateChanged
Event Type
Type Description
EventHandler<AvrcpControlConnectionChangedEventArgs>
API Level: 8
View Source

PlayStateChanged

The PlayStateChangedEventArgs event is invoked when the play state of a track gets changed.

Declaration
C#
Copy
public event EventHandler<PlayStateChangedEventArgs> PlayStateChanged
Event Type
Type Description
EventHandler<PlayStateChangedEventArgs>
API Level: 8
View Source

PositionChanged

The PositionChangedEventArgs event is invoked when the play position of a track is changed.

Declaration
C#
Copy
public event EventHandler<PositionChangedEventArgs> PositionChanged
Event Type
Type Description
EventHandler<PositionChangedEventArgs>
API Level: 8
View Source

TrackInfoChanged

The TrackInfoChangedEventArgs event is invoked when info of a track gets changed.

Declaration
C#
Copy
public event EventHandler<TrackInfoChangedEventArgs> TrackInfoChanged
Event Type
Type Description
EventHandler<TrackInfoChangedEventArgs>
API Level: 8

Extension Methods