Add BluetoothDevice constructor with remote address (#6165)
authoranujk-singh <115205617+anujk-singh@users.noreply.github.com>
Mon, 24 Jun 2024 12:08:59 +0000 (17:38 +0530)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2024 12:08:59 +0000 (21:08 +0900)
Signed-off-by: anujk-singh <anujk.singh@samsung.com>
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs

index b7a83aece83424f43bf83013a405965eebd0815a..c5ae56d77a483933d7f85238d31c154733d9aa11 100644 (file)
@@ -73,6 +73,16 @@ namespace Tizen.Network.Bluetooth
             RemoteDeviceAddress = leDevice?.RemoteAddress;
         }
 
+        /// <summary>
+        /// Constructor with remote address of the device
+        /// </summary>
+        /// <since_tizen> 12 </since_tizen>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public BluetoothDevice(string remoteAddress)
+        {
+            RemoteDeviceAddress = remoteAddress;
+        }
+
         /// <summary>
         /// The address of the device.
         /// </summary>