Class BluetoothAvrcpControl
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
This class is used to send commands from the control device (For example, headset) to the target device (For example, media player).
public class BluetoothAvrcpControl : BluetoothProfile
- Inheritance
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
Properties
View SourceEqualizerState
A property for the equalizer mode of target device.
Declaration
public EqualizerState EqualizerState { get; set; }
Property Value
Type | Description |
---|---|
EqualizerState |
Remarks
The remote device must be connected.
RepeatMode
A property for the repeat mode of target device.
Declaration
public RepeatMode RepeatMode { get; set; }
Property Value
Type | Description |
---|---|
RepeatMode |
Remarks
The remote device must be connected.
ScanMode
A property for the scan mode of target device.
Declaration
public ScanMode ScanMode { get; set; }
Property Value
Type | Description |
---|---|
ScanMode |
Remarks
The remote device must be connected.
ShuffleMode
A property for the suffle mode of target device.
Declaration
public ShuffleMode ShuffleMode { get; set; }
Property Value
Type | Description |
---|---|
ShuffleMode |
Remarks
The remote device must be connected.
Methods
View SourceConnectAsync()
Asynchronously connects the remote device
Declaration
public Task ConnectAsync()
Returns
Type | Description |
---|---|
Task |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
DecreaseVolume()
Decreases volume of target device
Declaration
public void DecreaseVolume()
Remarks
The remote device must be connected
DisconnectAsync()
Asynchronously disconnects the remote device
Declaration
public Task DisconnectAsync()
Returns
Type | Description |
---|---|
Task |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
Dispose()
Declaration
public void Dispose()
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
~BluetoothAvrcpControl()
Finalizes an instance of the BluetoothAvrcpControl class.
Declaration
protected ~BluetoothAvrcpControl()
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
GetPlayStatus()
Gets player state of the target device.
Declaration
public PlayerState GetPlayStatus()
Returns
Type | Description |
---|---|
PlayerState | Play status of the target device |
Remarks
The remote device must be connected.
GetPosition()
Gets position of the track being played on the target device.
Declaration
public uint GetPosition()
Returns
Type | Description |
---|---|
uint | Play position of the track being played on the target device |
Remarks
The remote device must be connected.
GetTrackInfo()
Gets info of the track being played on the target device.
Declaration
public Track GetTrackInfo()
Returns
Type | Description |
---|---|
Track | Info of the track being played on the target device |
Remarks
The remote device must be connected.
IncreaseVolume()
Increases volume of target device
Declaration
public void IncreaseVolume()
Remarks
The remote device must be connected
SendDelayReport(uint)
Sends delay report to the target device
Declaration
public void SendDelayReport(uint delay)
Parameters
Type | Name | Description |
---|---|---|
uint | delay | Delay to be sent to target |
Remarks
The remote device must be connected
SendPlayerCommand(PlayerCommand)
Sends a particular play command to the target device
Declaration
public void SendPlayerCommand(PlayerCommand command)
Parameters
Type | Name | Description |
---|---|---|
PlayerCommand | command | Command to be sent |
Remarks
The remote device must be connected.
SendPlayerCommandTo(PlayerCommand, string)
Sends a play command to a particular target device
Declaration
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.
SetAbsoluteVolume(uint)
Sets absolute volume of target device
Declaration
public void SetAbsoluteVolume(uint volume)
Parameters
Type | Name | Description |
---|---|---|
uint | volume | The volume level to be set |
Remarks
The remote device must be connected
Events
View SourceConnectionStateChanged
The AvrcpControlConnectionChangedEventArgs event is invoked when the connection status of device is changed.
Declaration
public event EventHandler<AvrcpControlConnectionChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
EventHandler<><AvrcpControlConnectionChangedEventArgs> |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
PlayStateChanged
The PlayStateChangedEventArgs event is invoked when the play state of a track gets changed.
Declaration
public event EventHandler<PlayStateChangedEventArgs> PlayStateChanged
Event Type
Type | Description |
---|---|
EventHandler<><PlayStateChangedEventArgs> |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
PositionChanged
The PositionChangedEventArgs event is invoked when the play position of a track is changed.
Declaration
public event EventHandler<PositionChangedEventArgs> PositionChanged
Event Type
Type | Description |
---|---|
EventHandler<><PositionChangedEventArgs> |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.
TrackInfoChanged
The TrackInfoChangedEventArgs event is invoked when info of a track gets changed.
Declaration
public event EventHandler<TrackInfoChangedEventArgs> TrackInfoChanged
Event Type
Type | Description |
---|---|
EventHandler<><TrackInfoChangedEventArgs> |
Remarks
This class can be obtained from BluetoothDevice.GetProfile method.