Skip to content

LocalAuthenticationEmbeddedUI macOS xcode13.0 beta2

Rachel Kang edited this page Aug 24, 2021 · 3 revisions

#LocalAuthenticationEmbeddedUI.framework https://github.com/xamarin/xamarin-macios/pull/12535

diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LAAuthenticationView.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LAAuthenticationView.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LAAuthenticationView.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LAAuthenticationView.h	2021-06-17 14:32:39.000000000 -0400
@@ -0,0 +1,40 @@
+//
+//  LAAuthenticationView.h
+//  LocalAuthenticationUI
+//
+//  Copyright © 2021 Apple. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <AppKit/NSView.h>
+#import <LocalAuthentication/LAContext.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// @brief Compact authentication view providing authentication similar to LAContext
+/// evaluatePolicy API.
+/// @discussion This view is non-textual, it displays only a compact icon hinting
+/// users to use Touch ID or Watch to authenticate. The reason for the
+/// authentication must be apparent from the surrounding UI to avoid confusion and
+/// security risks.
+API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos)
+@interface LAAuthenticationView : NSView
+
+- (instancetype)initWithFrame:(NSRect)frameRect NS_UNAVAILABLE;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
+
+/// @brief Creates a new view and pairs it with the specified authentication context.
+/// @discussion The authentication is controlled using the provided authentication
+/// context. When 'evaluatePolicy' or 'evaluateAccessControl' is called on this
+/// context, the UI will be presented using this view rather than using the standard
+/// authentication alert.
+/// @param context 'LAContext' instance to control the authentication.
+- (instancetype)initWithContext:(LAContext *)context
+API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos);
+
+/// @brief 'LAContext' instance passed to the initializer.
+@property (nonatomic, readonly) LAContext *context
+API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos);
+
+@end
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LocalAuthenticationEmbeddedUI.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LocalAuthenticationEmbeddedUI.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LocalAuthenticationEmbeddedUI.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Headers/LocalAuthenticationEmbeddedUI.h	2021-06-13 22:35:49.000000000 -0400
@@ -0,0 +1,5 @@
+//
+//  Copyright © 2016 Apple. All rights reserved.
+//
+
+#import <LocalAuthenticationEmbeddedUI/LAAuthenticationView.h>
Clone this wiki locally