Add BluetoothDevice constructor with remote address (#6165) (#6782)
authorWootak Jung <wootak.jung@samsung.com>
Wed, 26 Mar 2025 04:09:35 +0000 (13:09 +0900)
committerGitHub <noreply@github.com>
Wed, 26 Mar 2025 04:09:35 +0000 (13:09 +0900)
Signed-off-by: anujk-singh <anujk.singh@samsung.com>
Co-authored-by: anujk-singh <115205617+anujk-singh@users.noreply.github.com>
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs

index 4cd2f34cc0ba601c270e8907f4c52b6ea0eab758..fd54e337cc4c805754c70770394d42fb722fecd1 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>