[NET 6 Attribute Conversion] MobileCoreServices (#14075)
* Remove existing attributes * Attribute Conversion Co-authored-by: tj_devel709 <antlambe@microsoft.com>
This commit is contained in:
Родитель
5b132719cc
Коммит
fb24a4085d
|
@ -36,22 +36,64 @@ namespace MobileCoreServices {
|
|||
|
||||
public static partial class UTType {
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
[DllImport (Constants.CoreServicesLibrary)]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
extern static bool /* Boolean */ UTTypeIsDynamic (IntPtr /* CFStringRef */ handle);
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
[DllImport (Constants.CoreServicesLibrary)]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
extern static bool /* Boolean */ UTTypeIsDeclared (IntPtr /* CFStringRef */ handle);
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
public static bool IsDynamic (string utType)
|
||||
{
|
||||
|
@ -64,8 +106,22 @@ namespace MobileCoreServices {
|
|||
return result;
|
||||
}
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
public static bool IsDeclared (string utType)
|
||||
{
|
||||
|
@ -113,14 +169,42 @@ namespace MobileCoreServices {
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
[DllImport (Constants.CoreServicesLibrary)]
|
||||
extern static IntPtr /* NSString Array */ UTTypeCopyAllTagsWithClass (IntPtr /* CFStringRef */ utiStr, IntPtr /* CFStringRef */ tagClassStr);
|
||||
|
||||
#if !NET
|
||||
[iOS (8,0)][Mac (10,10)]
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios8.0")]
|
||||
[SupportedOSPlatform ("macos10.10")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
#endif
|
||||
public static string [] CopyAllTags (string uti, string tagClass)
|
||||
{
|
||||
|
@ -227,8 +311,20 @@ namespace MobileCoreServices {
|
|||
#if NET
|
||||
[SupportedOSPlatform ("ios12.0")]
|
||||
[SupportedOSPlatform ("tvos12.0")]
|
||||
[UnsupportedOSPlatform ("tvos14.0")]
|
||||
[UnsupportedOSPlatform ("macos11.0")]
|
||||
[UnsupportedOSPlatform ("ios14.0")]
|
||||
#if TVOS
|
||||
[Obsolete ("Starting with tvos14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif MONOMAC
|
||||
[Obsolete ("Starting with macos11.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#elif IOS
|
||||
[Obsolete ("Starting with ios14.0 use the 'UniformTypeIdentifiers.UTType' API instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[iOS (12,0)][TV (12,0)][Watch (5,0)]
|
||||
[iOS (12,0)]
|
||||
[TV (12,0)]
|
||||
[Watch (5,0)]
|
||||
#endif
|
||||
public static bool Equals (NSString uti1, NSString uti2)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче