[Tizen.Network.WiFi] Add set auto scan mode and hidden connect apis (#5730)
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.WiFi / Tizen.Network.WiFi / WiFiManager.cs
index 9e53676..599810c 100755 (executable)
@@ -445,5 +445,41 @@ namespace Tizen.Network.WiFi
         {
             return WiFiManagerImpl.Instance.BssidScanAsync();
         }
+
+        /// <summary>
+        /// Set Auto Scan Mode.
+        /// </summary>
+        /// <since_tizen> 10 </since_tizen>
+        /// <feature>http://tizen.org/feature/network.wifi</feature>
+        /// <privilege>http://tizen.org/privilege/network.set</privilege>
+        /// <privilege>http://tizen.org/privilege/network.get</privilege>
+        /// <exception cref="NotSupportedException">Thrown when the Wi-Fi is not supported.</exception>
+        /// <exception cref="UnauthorizedAccessException">Thrown when the permission is denied.</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the method failed due to an invalid operation.</exception>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        static public void SetAutoScanMode(WiFiAutoScanMode scanMode)
+        {
+            WiFiManagerImpl.Instance.SetAutoScanMode((int)scanMode);
+        }
+
+        /// <summary>
+        /// Hidden Ap connect.
+        /// </summary>
+        /// <remarks>
+        /// This method must be called from MainThread.
+        /// </remarks>
+        /// <since_tizen> 10 </since_tizen>
+        /// <returns>A task indicating whether the HiddenAPConnectAsync method is done or not.</returns>
+        /// <feature>http://tizen.org/feature/network.wifi</feature>
+        /// <privilege>http://tizen.org/privilege/network.set</privilege>
+        /// <privilege>http://tizen.org/privilege/network.get</privilege>
+        /// <exception cref="NotSupportedException">Thrown when the Wi-Fi is not supported.</exception>
+        /// <exception cref="UnauthorizedAccessException">Thrown when the permission is denied.</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the method failed due to an invalid operation.</exception>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        static public Task HiddenAPConnectAsync(string essid, int secType, string password)
+        {
+            return WiFiManagerImpl.Instance.HiddenAPConnectAsync(essid, secType, password);
+        }
     }
 }