From dd4904f0b643008aaf4ddfbca21e0fbf4c823b6a Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Fri, 21 Sep 2018 12:05:06 +0200 Subject: [PATCH] [QuickLook] Use the correct name properties in QLPreviewItem. Fixes #4450 (#4855) * [QuickLook] Use the correct name properties in QLPreviewItem. Fixes #4450 Renamed properties for the next time we can make breaking changes. Fixes https://github.com/xamarin/xamarin-macios/issues/4450 --- src/quicklook.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/quicklook.cs b/src/quicklook.cs index 53ef1ef2df..003512c5c6 100644 --- a/src/quicklook.cs +++ b/src/quicklook.cs @@ -130,13 +130,19 @@ namespace QuickLook { interface QLPreviewItem { [Abstract] [Export ("previewItemURL")] +#if XAMCORE_4_0 + NSUrl PreviewItemUrl { get; } +#else NSUrl ItemUrl { get; } +#endif + [Export ("previewItemTitle")] #if !XAMCORE_4_0 [Abstract] -#endif - [Export ("previewItemTitle")] string ItemTitle { get; } +#else + string PreviewItemTitle { get; } +#endif } [iOS (11,0)]