Class BluetoothAvrcp

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 notify changes of the target device (For example, media player) to the control device (For example, headset).

C#
Copy
public class BluetoothAvrcp : BluetoothProfile
Inheritance
System.Object
BluetoothAvrcp

Methods

View Source

NotifyCurrentPosition(UInt32)

Notifies the current position of the song to the remote device.

Declaration
C#
Copy
public void NotifyCurrentPosition(uint position)
Parameters
Type Name Description
System.UInt32 position

The current position in milliseconds.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the current position state to the remote device fails.

API Level: 3
View Source

NotifyEqualizerState(EqualizerState)

Notifies the equalize state to the remote device.

Declaration
C#
Copy
public void NotifyEqualizerState(EqualizerState state)
Parameters
Type Name Description
EqualizerState state

The equalizer state.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the equalizer state to the remote device fails.

API Level: 3
View Source

NotifyPlayerState(PlayerState)

Notifies the player state to the remote device.

Declaration
C#
Copy
public void NotifyPlayerState(PlayerState state)
Parameters
Type Name Description
PlayerState state

The player state.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the player state to the remote device fails.

API Level: 3
View Source

NotifyRepeatMode(RepeatMode)

Notifies the repeat mode to the remote device.

Declaration
C#
Copy
public void NotifyRepeatMode(RepeatMode mode)
Parameters
Type Name Description
RepeatMode mode

The repeat mode.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the repeat mode state to the remote device fails.

API Level: 3
View Source

NotifyScanMode(ScanMode)

Notifies the scan mode to the remote device.

Declaration
C#
Copy
public void NotifyScanMode(ScanMode mode)
Parameters
Type Name Description
ScanMode mode

The scan mode.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the scan mode state to the remote device fails.

API Level: 3
View Source

NotifyShuffleMode(ShuffleMode)

Notifies the shuffle mode to the remote device.

Declaration
C#
Copy
public void NotifyShuffleMode(ShuffleMode mode)
Parameters
Type Name Description
ShuffleMode mode

The shuffle mode.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the shuffle mode state to the remote device fails.

API Level: 3
View Source

NotifyTrack(Track)

Notifies the track to the remote device.

Declaration
C#
Copy
public void NotifyTrack(Track trackData)
Parameters
Type Name Description
Track trackData

The data of the track.

Remarks

The remote device must be connected.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the Bluetooth is not supported.

System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when notifying the shuffle track state to the remote device fails.

API Level: 3

Events

View Source

EqualizerStateChanged

The EqualizerStateChanged event is invoked when the equalizer state is changed by the remote control device.

Declaration
C#
Copy
public event EventHandler<EqualizerStateChangedEventArgs> EqualizerStateChanged
Event Type
Type Description
System.EventHandler<EqualizerStateChangedEventArgs>
API Level: 3
View Source

RepeatModeChanged

The RepeatModeChanged event is invoked when the repeat mode is changed by the remote control device.

Declaration
C#
Copy
public event EventHandler<RepeatModeChangedEventArgs> RepeatModeChanged
Event Type
Type Description
System.EventHandler<RepeatModeChangedEventArgs>
API Level: 3
View Source

ScanModeChanged

The ScanModeChanged event is invoked when the scan mode is changed by the remote control device.

Declaration
C#
Copy
public event EventHandler<ScanModeChangedEventArgs> ScanModeChanged
Event Type
Type Description
System.EventHandler<ScanModeChangedEventArgs>
API Level: 3
View Source

ShuffleModeChanged

The ShuffleModeChanged event is invoked when the shuffle mode is changed by the remote control device.

Declaration
C#
Copy
public event EventHandler<ShuffleModeChangedeventArgs> ShuffleModeChanged
Event Type
Type Description
System.EventHandler<ShuffleModeChangedeventArgs>
API Level: 3
View Source

TargetConnectionStateChanged

The TargetConnectionStateChanged event is invoked when the connection state is changed.

Declaration
C#
Copy
public event EventHandler<TargetConnectionStateChangedEventArgs> TargetConnectionStateChanged
Event Type
Type Description
System.EventHandler<TargetConnectionStateChangedEventArgs>
API Level: 3