Skip to content

LinkPresentation macOS xcode13.0 beta1

tj_devel709 edited this page Jun 15, 2021 · 3 revisions

#LinkPresentation.framework https://github.com/xamarin/xamarin-macios/pull/11943

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h	2021-03-16 09:54:55.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h	2021-06-02 11:07:26.000000000 -0400
@@ -37,6 +37,19 @@
 - (void)startFetchingMetadataForURL:(NSURL *)URL completionHandler:(void(^)(LPLinkMetadata *_Nullable metadata, NSError *_Nullable error))completionHandler;
 
 /**
+ Fetch metadata for the given NSURLRequest.
+
+ The completion handler will be called on a non-main queue.
+
+ File URLs returned in the resultant LPLinkMetadata will be deleted
+ when the completion handler returns.
+
+ An exception will be thrown if this is called more than once
+ on a particular LPMetadataProvider instance.
+ */
+- (void)startFetchingMetadataForRequest:(NSURLRequest *)request completionHandler:(void(^)(LPLinkMetadata *_Nullable metadata, NSError *_Nullable error))completionHandler API_AVAILABLE(macos(12.0), ios(15.0));
+
+/**
  Cancel a metadata request.
 
  If the request had not already completed, the completion handler will be invoked
Clone this wiki locally