Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions src/LocalAuthentication/LAEnums.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.ComponentModel;

using ObjCRuntime;
using Foundation;

Expand All @@ -18,14 +20,34 @@ public enum LAPolicy : long {
[NoiOS]
[NoMacCatalyst]
DeviceOwnerAuthenticationWithWatch = 3,
[NoTV, MacCatalyst (18, 0), Mac (15, 0), iOS (18, 0)]

#if XAMCORE_5_0
[NoiOS]
#else
[iOS (18, 0)]
#if __IOS__ && !__MACCATALYST__
[Obsolete ("This value is not available on this platform.")]
#endif
#endif
[NoTV, MacCatalyst (18, 0), Mac (15, 0)]
DeviceOwnerAuthenticationWithCompanion = 3,

[Deprecated (PlatformName.MacOSX, 15, 0, message: "Use 'DeviceOwnerAuthenticationWithBiometricsOrCompanion' instead.")]
[NoiOS]
[NoMacCatalyst]
DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
[NoTV, MacCatalyst (18, 0), Mac (15, 0), iOS (18, 0)]

#if XAMCORE_5_0
[NoiOS]
#else
[iOS (18, 0)]
#if __IOS__ && !__MACCATALYST__
[Obsolete ("This value is not available on this platform.")]
#endif
#endif
[NoTV, MacCatalyst (18, 0), Mac (15, 0)]
DeviceOwnerAuthenticationWithBiometricsOrCompanion = 4,

[Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.")]
[NoiOS]
[NoMacCatalyst]
Expand Down
2 changes: 2 additions & 0 deletions src/localauthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ enum LACompanionType : long {
Watch = 1 << 0,
[NoMac, NoTV]
Mac = 1 << 1,
[NoMac, NoTV]
Vision = 1 << 2,
}

[Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
Expand Down

This file was deleted.

This file was deleted.

Loading