diff --git a/src/NetworkExtension/NEHotspotConfiguration.cs b/src/NetworkExtension/NEHotspotConfiguration.cs
index d029f3af6773..e7d158d84d4e 100644
--- a/src/NetworkExtension/NEHotspotConfiguration.cs
+++ b/src/NetworkExtension/NEHotspotConfiguration.cs
@@ -10,50 +10,58 @@ namespace NetworkExtension {
public partial class NEHotspotConfiguration {
- /// To be added.
- /// To be added.
- /// To be added.
+ /// Create a new with the specified SSID.
+ /// The SSID the new applies to.
public NEHotspotConfiguration (string ssid)
+ : base (NSObjectFlag.Empty)
{
- InitializeHandle (initWithSsid (ssid));
+ InitializeHandle (_InitWithSsid (ssid), "initWithSSID:");
}
- /// To be added.
- /// To be added.
- /// To be added.
- /// To be added.
- /// To be added.
+ /// Create a new with the specified SSID.
+ /// The SSID the new applies to.
+ /// The passphrase for the network specified by .
+ /// Whether the network is a WEP network (otherwise a WPA or WPA2 network).
public NEHotspotConfiguration (string ssid, string passphrase, bool isWep)
+ : base (NSObjectFlag.Empty)
{
- InitializeHandle (initWithSsid (ssid, passphrase, isWep));
+ InitializeHandle (_InitWithSsidAndPassprase (ssid, passphrase, isWep), "initWithSSID:passphrase:isWEP:");
}
-#if NET
+ /// Create a new with the specified SSID.
+ /// The SSID the new applies to.
+ /// Whether specifies the prefix of an SSID, or a complete SSID.
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
-#else
- [iOS (13, 0)]
-#endif
public NEHotspotConfiguration (string ssid, bool ssidIsPrefix)
+ : base (NSObjectFlag.Empty)
{
- var h = ssidIsPrefix ? initWithSsidPrefix (ssid) : initWithSsid (ssid);
- InitializeHandle (h);
+ if (ssidIsPrefix) {
+ InitializeHandle (_InitWithSsidPrefix (ssid), "initWithSSIDPrefix:");
+ } else {
+ InitializeHandle (_InitWithSsid (ssid), "initWithSSID:");
+ }
}
-#if NET
+ /// Create a new with the specified SSID.
+ /// The SSID the new applies to.
+ /// The passphrase for the network specified by .
+ /// Whether the network is a WEP network (otherwise a WPA or WPA2 network).
+ /// Whether specifies the prefix of an SSID, or a complete SSID.
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
-#else
- [iOS (13, 0)]
-#endif
public NEHotspotConfiguration (string ssid, string passphrase, bool isWep, bool ssidIsPrefix)
+ : base (NSObjectFlag.Empty)
{
- var h = ssidIsPrefix ? initWithSsidPrefix (ssid, passphrase, isWep) : initWithSsid (ssid, passphrase, isWep);
- InitializeHandle (h);
+ if (ssidIsPrefix) {
+ InitializeHandle (_InitWithSsidPrefixAndPassphrase (ssid, passphrase, isWep), "initWithSSIDPrefix:passphrase:isWEP:");
+ } else {
+ InitializeHandle (_InitWithSsidAndPassprase (ssid, passphrase, isWep), "initWithSSID:passphrase:isWEP:");
+ }
}
}
}
diff --git a/src/networkextension.cs b/src/networkextension.cs
index b18702db8063..95acb915bf26 100644
--- a/src/networkextension.cs
+++ b/src/networkextension.cs
@@ -4299,11 +4299,11 @@ interface NEHotspotConfiguration : NSCopying, NSSecureCoding {
[Internal]
[Export ("initWithSSID:")]
- IntPtr initWithSsid (string ssid);
+ IntPtr _InitWithSsid (string ssid);
[Internal]
[Export ("initWithSSID:passphrase:isWEP:")]
- IntPtr initWithSsid (string ssid, string passphrase, bool isWep);
+ IntPtr _InitWithSsidAndPassprase (string ssid, string passphrase, bool isWep);
/// To be added.
/// To be added.
@@ -4323,13 +4323,13 @@ interface NEHotspotConfiguration : NSCopying, NSSecureCoding {
[iOS (13, 0)]
[MacCatalyst (13, 1)]
[Export ("initWithSSIDPrefix:")]
- IntPtr initWithSsidPrefix (string ssidPrefix);
+ IntPtr _InitWithSsidPrefix (string ssidPrefix);
[Internal]
[iOS (13, 0)]
[MacCatalyst (13, 1)]
[Export ("initWithSSIDPrefix:passphrase:isWEP:")]
- IntPtr initWithSsidPrefix (string ssidPrefix, string passphrase, bool isWep);
+ IntPtr _InitWithSsidPrefixAndPassphrase (string ssidPrefix, string passphrase, bool isWep);
[iOS (13, 0)]
[MacCatalyst (13, 1)]
diff --git a/tests/cecil-tests/ConstructorTest.KnownFailures.cs b/tests/cecil-tests/ConstructorTest.KnownFailures.cs
index 54f84e8ebea6..5fda77ce6583 100644
--- a/tests/cecil-tests/ConstructorTest.KnownFailures.cs
+++ b/tests/cecil-tests/ConstructorTest.KnownFailures.cs
@@ -46,10 +46,6 @@ public partial class ConstructorTest {
"ModelIO.MDLMesh::.ctor(System.Numerics.Vector3,CoreGraphics.NVector3i,System.Boolean,ModelIO.MDLGeometryType,ModelIO.IMDLMeshBufferAllocator)",
"ModelIO.MDLMesh::.ctor(System.Numerics.Vector3,System.Boolean,ModelIO.MDLGeometryType,ModelIO.IMDLMeshBufferAllocator)",
"ModelIO.MDLNoiseTexture::.ctor(System.Single,System.String,CoreGraphics.NVector2i,ModelIO.MDLTextureChannelEncoding,ModelIO.MDLNoiseTextureType)",
- "NetworkExtension.NEHotspotConfiguration::.ctor(System.String,System.Boolean)",
- "NetworkExtension.NEHotspotConfiguration::.ctor(System.String,System.String,System.Boolean,System.Boolean)",
- "NetworkExtension.NEHotspotConfiguration::.ctor(System.String,System.String,System.Boolean)",
- "NetworkExtension.NEHotspotConfiguration::.ctor(System.String)",
"SpriteKit.SKUniform::.ctor(System.String,System.Numerics.Vector2)",
"SpriteKit.SKUniform::.ctor(System.String,System.Numerics.Vector3)",
"SpriteKit.SKUniform::.ctor(System.String,System.Numerics.Vector4)",
diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt
index dc119290c518..a966753aee00 100644
--- a/tests/cecil-tests/Documentation.KnownFailures.txt
+++ b/tests/cecil-tests/Documentation.KnownFailures.txt
@@ -14299,8 +14299,6 @@ M:NetworkExtension.NEFilterPacketProvider.DelayCurrentPacket(NetworkExtension.NE
M:NetworkExtension.NEFilterProvider.HandleReport(NetworkExtension.NEFilterReport)
M:NetworkExtension.NEFilterRule.#ctor(NetworkExtension.NENetworkRule,NetworkExtension.NEFilterAction)
M:NetworkExtension.NEFilterSettings.#ctor(NetworkExtension.NEFilterRule[],NetworkExtension.NEFilterAction)
-M:NetworkExtension.NEHotspotConfiguration.#ctor(System.String,System.Boolean)
-M:NetworkExtension.NEHotspotConfiguration.#ctor(System.String,System.String,System.Boolean,System.Boolean)
M:NetworkExtension.NEHotspotConfigurationManager.JoinAccessoryHotspot(AccessorySetupKit.ASAccessory,System.String,NetworkExtension.NEHotspotConfigurationManagerJoinHotspotCallback)
M:NetworkExtension.NEHotspotConfigurationManager.JoinAccessoryHotspotAsync(AccessorySetupKit.ASAccessory,System.String)
M:NetworkExtension.NEHotspotConfigurationManager.JoinAccessoryHotspotWithoutSecurit(AccessorySetupKit.ASAccessory,NetworkExtension.NEHotspotConfigurationManagerJoinHotspotCallback)
diff --git a/tests/introspection/ApiSelectorTest.cs b/tests/introspection/ApiSelectorTest.cs
index 5537d4cd05d8..9b66538d0e29 100644
--- a/tests/introspection/ApiSelectorTest.cs
+++ b/tests/introspection/ApiSelectorTest.cs
@@ -1354,11 +1354,6 @@ protected virtual bool SkipInit (string selector, MethodBase m)
case "initWithUUID:identifier:":
case "initWithUUID:major:identifier:":
case "initWithUUID:major:minor:identifier:":
- // NEHotspotConfiguration
- case "initWithSSID:":
- case "initWithSSID:passphrase:isWEP:":
- case "initWithSSIDPrefix:":
- case "initWithSSIDPrefix:passphrase:isWEP:":
var mi = m as MethodInfo;
return mi is not null && !mi.IsPublic && (mi.ReturnType.Name == "IntPtr" || mi.ReturnType.Name == "NativeHandle");
// NSAppleEventDescriptor