Skip to content

Commit

Permalink
[quicklook] Update up to beta 4 (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Jul 27, 2017
1 parent 3606b9f commit bcbcf93
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/quicklook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,53 @@ interface QLPreviewItem {
[Export ("previewItemTitle")]
string ItemTitle { get; }
}

[iOS (11,0)]
[Protocol]
interface QLPreviewingController {
[Export ("preparePreviewOfSearchableItemWithIdentifier:queryString:completionHandler:")]
void PreparePreviewOfSearchableItem (string identifier, [NullAllowed] string queryString, Action<NSError> handler);

[Export ("preparePreviewOfFileAtURL:completionHandler:")]
void PreparePreviewOfFile (NSUrl url, Action<NSError> handler);
}

[iOS (11,0)]
[BaseType (typeof (NSObject))]
interface QLThumbnailProvider {
[Export ("provideThumbnailForFileRequest:completionHandler:")]
void ProvideThumbnail (QLFileThumbnailRequest request, Action<QLThumbnailReply, NSError> handler);
}

[iOS (11,0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface QLThumbnailReply {
[Static]
[Export ("replyWithContextSize:drawingBlock:")]
QLThumbnailReply CreateReply (CGSize contextSize, Func<CGContext, bool> drawingBlock);

[Static]
[Export ("replyWithContextSize:currentContextDrawingBlock:")]
QLThumbnailReply CreateReply (CGSize contextSize, Func<bool> drawingBlock);

[Static]
[Export ("replyWithImageFileURL:")]
QLThumbnailReply CreateReply (NSUrl fileUrl);
}

[iOS (11,0)]
[BaseType (typeof (NSObject))]
interface QLFileThumbnailRequest {
[Export ("maximumSize")]
CGSize MaximumSize { get; }

[Export ("scale")]
nfloat Scale { get; }

[Export ("fileURL", ArgumentSemantic.Copy)]
NSUrl FileUrl { get; }
}
#else
[Static]
interface QLThumbnailImage {
Expand Down

0 comments on commit bcbcf93

Please sign in to comment.