From 3fe4847d5411a14611fad20f5bb48ac5593a762e Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Fri, 3 Jul 2020 11:17:06 +0900 Subject: [PATCH] [Bluetooth][TCSACR-323] Fix AvrcpControl methods document (#1775) Signed-off-by: Wootak Jung --- .../BluetoothAvrcpControl.cs | 105 ++++++++++++++------- 1 file changed, 70 insertions(+), 35 deletions(-) diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcpControl.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcpControl.cs index d1f7df8..71b46fb 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcpControl.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcpControl.cs @@ -24,12 +24,12 @@ namespace Tizen.Network.Bluetooth /// /// This class is used to send commands from the control device (For example, headset) to the target device (For example, media player). /// + /// 8 + /// http://tizen.org/feature/network.bluetooth.audio.controller + /// The required feature is not supported. /// /// This class can be obtained from BluetoothDevice.GetProfile method. /// - /// http://tizen.org/privilege/bluetooth - /// http://tizen.org/feature/network.bluetooth.audio.controller - /// 8 public class BluetoothAvrcpControl : BluetoothProfile { private TaskCompletionSource _taskForConnection; @@ -125,9 +125,11 @@ namespace Tizen.Network.Bluetooth /// /// Asynchronously connects the remote device /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the method fails /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller + /// The required feature is not supported. + /// Thrown when the method fails public Task ConnectAsync() { if (_taskForConnection != null && !_taskForConnection.Task.IsCompleted) @@ -143,9 +145,11 @@ namespace Tizen.Network.Bluetooth /// /// Asynchronously disconnects the remote device /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the method fails /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller + /// The required feature is not supported. + /// Thrown when the method fails public Task DisconnectAsync() { if (_taskForDisconnection != null && !_taskForDisconnection.Task.IsCompleted) @@ -160,14 +164,16 @@ namespace Tizen.Network.Bluetooth /// /// A property for the equalizer mode of target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled - /// or when notifying the repeat mode state to the remote device fails. + /// or when notifying the equalizer state to the remote device fails. /// - /// 8 public EqualizerState EqualizerState { get @@ -193,14 +199,16 @@ namespace Tizen.Network.Bluetooth /// /// A property for the repeat mode of target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when notifying the repeat mode state to the remote device fails. /// - /// 8 public RepeatMode RepeatMode { get @@ -226,14 +234,16 @@ namespace Tizen.Network.Bluetooth /// /// A property for the suffle mode of target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled - /// or if retrieving scan mode of the remote device fails. + /// or if retrieving shuffle mode of the remote device fails. /// - /// 8 public ShuffleMode ShuffleMode { get @@ -259,14 +269,16 @@ namespace Tizen.Network.Bluetooth /// /// A property for the scan mode of target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or if retrieving scan mode of the remote device fails. /// - /// 8 public ScanMode ScanMode { get @@ -292,15 +304,17 @@ namespace Tizen.Network.Bluetooth /// /// Gets position of the track being played on the target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// /// Play position of the track being played on the target device - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or if there is an error retrieving the position of the track that is currently being played. /// - /// 8 public uint GetPosition() { if (_isConnected == true) @@ -317,15 +331,17 @@ namespace Tizen.Network.Bluetooth /// /// Gets player state of the target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// /// Play status of the target device - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or if there happens to be an error while retrieving the player state of the target device. /// - /// 8 public PlayerState GetPlayStatus() { if (_isConnected == true) @@ -342,15 +358,17 @@ namespace Tizen.Network.Bluetooth /// /// Gets info of the track being played on the target device. /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// /// Info of the track being played on the target device - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or if there happens to be an error while retrieving info of the track being played on the target. /// - /// 8 public Track GetTrackInfo() { if (_isConnected == true) @@ -367,15 +385,17 @@ namespace Tizen.Network.Bluetooth /// /// Sends a particular play command to the target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// /// Command to be sent - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when sending command to the target device fails. /// - /// 8 public void SendPlayerCommand(PlayerCommand command) { if (_isConnected == true) @@ -391,16 +411,19 @@ namespace Tizen.Network.Bluetooth /// /// Sends a play command to a particular target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth.admin + /// platform + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected. /// /// Command to be sent /// Address of the device to send command - /// Thrown when the Bluetooth is not supported. + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when sending command to the target device fails. /// - /// 8 [EditorBrowsable(EditorBrowsableState.Never)] public void SendPlayerCommandTo(PlayerCommand command, string remoteAddress) { @@ -417,15 +440,18 @@ namespace Tizen.Network.Bluetooth /// /// Sets absolute volume of target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth.admin + /// platform + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected /// /// The volume level to be set - /// Thrown when the Bluetooth is not supported + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when setting absolute volume of the target device fails /// - /// 8 [EditorBrowsable(EditorBrowsableState.Never)] public void SetAbsoluteVolume(uint volume) { @@ -442,14 +468,17 @@ namespace Tizen.Network.Bluetooth /// /// Increases volume of target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth.admin + /// platform + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected /// - /// Thrown when the Bluetooth is not supported + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when increasing volume of the target device fails /// - /// 8 [EditorBrowsable(EditorBrowsableState.Never)] public void IncreaseVolume() { @@ -466,14 +495,17 @@ namespace Tizen.Network.Bluetooth /// /// Decreases volume of target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth.admin + /// platform + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected /// - /// Thrown when the Bluetooth is not supported + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when decreasing volume of the target device fails /// - /// 8 [EditorBrowsable(EditorBrowsableState.Never)] public void DecreaseVolume() { @@ -490,15 +522,18 @@ namespace Tizen.Network.Bluetooth /// /// Sends delay report to the target device /// + /// 8 + /// http://tizen.org/privilege/bluetooth.admin + /// platform + /// http://tizen.org/feature/network.bluetooth.audio.controller /// /// The remote device must be connected /// /// Delay to be sent to target - /// Thrown when the Bluetooth is not supported + /// The required feature is not supported. /// Thrown when the Bluetooth is not enabled /// or when sending delay to the target device fails /// - /// 8 [EditorBrowsable(EditorBrowsableState.Never)] public void SendDelayReport(uint delay) { -- 2.7.4