[Bluetooth] Deprecated LeDevice based Gatt APIs (#764)
authorWootak <nonsan1228@gmail.com>
Fri, 29 Mar 2019 00:32:58 +0000 (09:32 +0900)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2019 00:32:58 +0000 (09:32 +0900)
Deprecated LeDevice based Gatt APIs

ACR : http://suprem.sec.samsung.net/jira/projects/TCSACR/issues/TCSACR-235

src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs

index a1c3134..e4a10a2 100644 (file)
@@ -276,6 +276,7 @@ namespace Tizen.Network.Bluetooth
         /// <summary>
         /// Creates the Bluetooth GATT client.
         /// </summary>
+        /// <param name="remoteAddress">The remote device address.</param>
         /// <returns>The BluetoothGattClient instance.</returns>
         /// <feature>http://tizen.org/feature/network.bluetooth.le.gatt.client</feature>
         /// <exception cref="NotSupportedException">Thrown when the BT/BTLE is not supported.</exception>
@@ -422,6 +423,7 @@ namespace Tizen.Network.Bluetooth
         /// Destroy Bluetooth GATT client
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API level 6. Please use Dispose() method on BluetoothGattClient.")]
         public void DestroyClient()
         {
             _impl.GetHandle().Dispose();
index ded75cd..d2c8775 100644 (file)
@@ -130,6 +130,7 @@ namespace Tizen.Network.Bluetooth {
         /// This event is called when the GATT client connects/disconnects with the server.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API level 6. Please use ConnectionStateChanged event on BluetoothGattClient.")]
         public event EventHandler<GattConnectionStateChangedEventArgs> GattConnectionStateChanged
         {
             add
@@ -423,6 +424,7 @@ namespace Tizen.Network.Bluetooth {
         /// <exception cref="InvalidOperationException">Thrown when the Bluetooth LE is not enabled
         /// or when the gatt connection attempt to remote device fails.</exception>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API level 6. Please use CreateClient() and ConnectAsync() method on BluetoothGattClient.")]
         public BluetoothGattClient GattConnect(bool autoConnect)
         {
             BluetoothGattClient client = null;
@@ -454,6 +456,7 @@ namespace Tizen.Network.Bluetooth {
         /// <exception cref="InvalidOperationException">Thrown when the Bluetooth LE is not enabled
         /// or when the GATT disconnection attempt to remote device fails.</exception>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API level 6. Please use DisconnectAsync() method on BluetoothGattClient.")]
         public void GattDisconnect()
         {
             if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize)