-
Notifications
You must be signed in to change notification settings - Fork 507
QuickLookThumbnailing macOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Aug 15, 2024
·
3 revisions
#QuickLookThumbnailing.framework https://github.com/xamarin/xamarin-macios/pull/21049
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h 2024-04-18 08:23:13
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h 2024-05-30 05:03:55
@@ -52,6 +52,20 @@
The file saved at fileURL has to be deleted when it is not used anymore.
This is primarily intended for file provider extensions which need to upload thumbnails and have a small memory limit.
+ @param contentType An image content type to save the thumbnail as, supported by CGImageDestination, such as UTTypePNG or UTTypeJPEG
+ @param completionHandler
+ Always called when the thumbnail generation is over. Will contain an error if the thumbnail could not be successfully saved to disk at fileURL.
+ */
+- (void)saveBestRepresentationForRequest:(QLThumbnailGenerationRequest *)request
+ toFileAtURL:(NSURL*)fileURL
+ asContentType:(UTType*)contentType
+ completionHandler:(void (^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(saveBestRepresentation(for:to:as:completion:));
+
+/**
+ Saves a thumbnail for the request on disk at fileURL.
+ The file saved at fileURL has to be deleted when it is not used anymore.
+ This is primarily intended for file provider extensions which need to upload thumbnails and have a small memory limit.
+
@param contentType An image content type to save the thumbnail as, supported by CGImageDestination, such as kUTTypePNG or kUTTypeJPEG
@param completionHandler
Always called when the thumbnail generation is over. Will contain an error if the thumbnail could not be successfully saved to disk at fileURL.
@@ -59,7 +73,7 @@
- (void)saveBestRepresentationForRequest:(QLThumbnailGenerationRequest *)request
toFileAtURL:(NSURL*)fileURL
withContentType:(NSString*)contentType
- completionHandler:(void (^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(saveBestRepresentation(for:to:contentType:completion:));
+ completionHandler:(void (^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(saveBestRepresentation(for:to:contentType:completion:)) API_DEPRECATED_WITH_REPLACEMENT("saveBestRepresentationForRequest:toFileAtURL:asContentType:completionHandler:",macos(11.0, 15.0), ios(14.0, 18.0));
@end
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status