From: Wootak Date: Fri, 29 Mar 2019 00:32:58 +0000 (+0900) Subject: [Bluetooth] Deprecated LeDevice based Gatt APIs (#764) X-Git-Tag: 5.5_M2~269 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eeff271a440748c413430e36975977c08238add5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Bluetooth] Deprecated LeDevice based Gatt APIs (#764) Deprecated LeDevice based Gatt APIs ACR : http://suprem.sec.samsung.net/jira/projects/TCSACR/issues/TCSACR-235 --- diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs index a1c3134..e4a10a2 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs @@ -276,6 +276,7 @@ namespace Tizen.Network.Bluetooth /// /// Creates the Bluetooth GATT client. /// + /// The remote device address. /// The BluetoothGattClient instance. /// http://tizen.org/feature/network.bluetooth.le.gatt.client /// Thrown when the BT/BTLE is not supported. @@ -422,6 +423,7 @@ namespace Tizen.Network.Bluetooth /// Destroy Bluetooth GATT client /// /// 3 + [Obsolete("Deprecated since API level 6. Please use Dispose() method on BluetoothGattClient.")] public void DestroyClient() { _impl.GetHandle().Dispose(); diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs index ded75cd..d2c8775 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs @@ -130,6 +130,7 @@ namespace Tizen.Network.Bluetooth { /// This event is called when the GATT client connects/disconnects with the server. /// /// 3 + [Obsolete("Deprecated since API level 6. Please use ConnectionStateChanged event on BluetoothGattClient.")] public event EventHandler GattConnectionStateChanged { add @@ -423,6 +424,7 @@ namespace Tizen.Network.Bluetooth { /// Thrown when the Bluetooth LE is not enabled /// or when the gatt connection attempt to remote device fails. /// 3 + [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 { /// Thrown when the Bluetooth LE is not enabled /// or when the GATT disconnection attempt to remote device fails. /// 3 + [Obsolete("Deprecated since API level 6. Please use DisconnectAsync() method on BluetoothGattClient.")] public void GattDisconnect() { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize)