Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

QuickLookThumbnailing iOS xcode16.0 b1

Rolf Bjarne Kvinge edited this pageAug 15, 2024 ·3 revisions

#QuickLookThumbnailing.frameworkhttps://github.com/xamarin/xamarin-macios/pull/21049

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h2024-04-13 15:22:59+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailGenerator.h2024-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

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp