-
-
Save vs-mobiletools-engineering-service2/c02970458bfbec43e2653b09594bafc5 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/old/dotnet/ios/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs b/new/dotnet/ios/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
index e30baa7..7453578 100644 | |
--- a/old/dotnet/ios/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
+++ b/new/dotnet/ios/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
@@ -54,7 +54,7 @@ namespace SharedWithYouCore { | |
[SupportedOSPlatform ("macos13.0")] | |
[SupportedOSPlatform ("ios16.0")] | |
[SupportedOSPlatform ("maccatalyst16.0")] | |
- public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSMutableCopying, INSSecureCoding { | |
+ public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSItemProviderReading, INSItemProviderWriting, INSMutableCopying, INSSecureCoding { | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
#if ARCH_32 | |
#pragma warning disable 649 | |
@@ -151,6 +151,117 @@ namespace SharedWithYouCore { | |
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | |
} | |
} | |
+ [Export ("itemProviderVisibilityForRepresentationWithTypeIdentifier:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public virtual NSItemProviderRepresentationVisibility GetItemProviderVisibilityForTypeIdentifier (string typeIdentifier) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ NSItemProviderRepresentationVisibility ret; | |
+ if (IsDirectBinding) { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } else { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("objectWithItemProviderData:typeIdentifier:error:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public static INSItemProviderReading? GetObject (NSData data, string typeIdentifier, out NSError? outError) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ NativeHandle outErrorValue = IntPtr.Zero; | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ INSItemProviderReading? ret; | |
+ ret = Runtime.GetINativeObject<INSItemProviderReading> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("objectWithItemProviderData:typeIdentifier:error:"), data__handle__, nstypeIdentifier, ref outErrorValue), false)!; | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ outError = Runtime.GetNSObject<NSError> (outErrorValue)!; | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual NSProgress? LoadData (string typeIdentifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V19))]global::System.Action<NSData, NSError> completionHandler) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ if (completionHandler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ BlockLiteral *block_ptr_completionHandler; | |
+ BlockLiteral block_completionHandler; | |
+ block_completionHandler = new BlockLiteral (); | |
+ block_ptr_completionHandler = &block_completionHandler; | |
+ block_completionHandler.SetupBlockUnsafe (Trampolines.SDActionArity2V19.Handler, completionHandler); | |
+ NSProgress? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ block_ptr_completionHandler->CleanupBlock (); | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier, out NSProgress result) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ result = LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ })!; | |
+ return tcs.Task; | |
+ } | |
[Export ("mutableCopyWithZone:")] | |
[return: ReleaseAttribute ()] | |
[SupportedOSPlatform ("tvos16.0.0")] | |
@@ -343,6 +454,25 @@ namespace SharedWithYouCore { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public static string[] ReadableTypeIdentifiers { | |
+ [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("readableTypeIdentifiersForItemProvider")))!; | |
+ #endif | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[SupportedOSPlatform ("tvos16.0.0")] | |
[SupportedOSPlatform ("macos13.0.0")] | |
[SupportedOSPlatform ("ios16.0.0")] | |
@@ -425,5 +555,47 @@ namespace SharedWithYouCore { | |
#endif | |
} | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public static string[] WritableTypeIdentifiers { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ #endif | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public virtual string[] WritableTypeIdentifiersForItemProvider { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (IsDirectBinding) { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } else { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } | |
+ #endif | |
+ } | |
+ } | |
} /* class SWCollaborationMetadata */ | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs b/new/dotnet/maccatalyst/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
index 981182e..ab74e07 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
@@ -54,7 +54,7 @@ namespace SharedWithYouCore { | |
[SupportedOSPlatform ("macos13.0")] | |
[SupportedOSPlatform ("ios16.0")] | |
[SupportedOSPlatform ("maccatalyst16.0")] | |
- public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSMutableCopying, INSSecureCoding { | |
+ public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSItemProviderReading, INSItemProviderWriting, INSMutableCopying, INSSecureCoding { | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
static readonly NativeHandle class_ptr = Class.GetHandle ("SWCollaborationMetadata"); | |
public override NativeHandle ClassHandle { get { return class_ptr; } } | |
@@ -137,6 +137,105 @@ namespace SharedWithYouCore { | |
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | |
} | |
} | |
+ [Export ("itemProviderVisibilityForRepresentationWithTypeIdentifier:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public virtual NSItemProviderRepresentationVisibility GetItemProviderVisibilityForTypeIdentifier (string typeIdentifier) | |
+ { | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ NSItemProviderRepresentationVisibility ret; | |
+ if (IsDirectBinding) { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } else { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ return ret!; | |
+ } | |
+ [Export ("objectWithItemProviderData:typeIdentifier:error:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public static INSItemProviderReading? GetObject (NSData data, string typeIdentifier, out NSError? outError) | |
+ { | |
+ var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ NativeHandle outErrorValue = IntPtr.Zero; | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ INSItemProviderReading? ret; | |
+ ret = Runtime.GetINativeObject<INSItemProviderReading> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("objectWithItemProviderData:typeIdentifier:error:"), data__handle__, nstypeIdentifier, ref outErrorValue), false)!; | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ outError = Runtime.GetNSObject<NSError> (outErrorValue)!; | |
+ return ret!; | |
+ } | |
+ [Export ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")] | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual NSProgress? LoadData (string typeIdentifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V16))]global::System.Action<NSData, NSError> completionHandler) | |
+ { | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ if (completionHandler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ BlockLiteral *block_ptr_completionHandler; | |
+ BlockLiteral block_completionHandler; | |
+ block_completionHandler = new BlockLiteral (); | |
+ block_ptr_completionHandler = &block_completionHandler; | |
+ block_completionHandler.SetupBlockUnsafe (Trampolines.SDActionArity2V16.Handler, completionHandler); | |
+ NSProgress? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ block_ptr_completionHandler->CleanupBlock (); | |
+ return ret!; | |
+ } | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
+ [SupportedOSPlatform ("tvos16.0.0")] | |
+ [SupportedOSPlatform ("macos13.0.0")] | |
+ [SupportedOSPlatform ("ios16.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier, out NSProgress result) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ result = LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ })!; | |
+ return tcs.Task; | |
+ } | |
[Export ("mutableCopyWithZone:")] | |
[return: ReleaseAttribute ()] | |
[SupportedOSPlatform ("tvos16.0.0")] | |
@@ -297,6 +396,21 @@ namespace SharedWithYouCore { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public static string[] ReadableTypeIdentifiers { | |
+ [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("readableTypeIdentifiersForItemProvider")))!; | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[SupportedOSPlatform ("tvos16.0.0")] | |
[SupportedOSPlatform ("macos13.0.0")] | |
[SupportedOSPlatform ("ios16.0.0")] | |
@@ -363,5 +477,39 @@ namespace SharedWithYouCore { | |
} | |
} | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public static string[] WritableTypeIdentifiers { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0.0")] | |
+ public virtual string[] WritableTypeIdentifiersForItemProvider { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ [SupportedOSPlatform ("tvos11.0.0")] | |
+ [SupportedOSPlatform ("macos10.13.0")] | |
+ [SupportedOSPlatform ("ios11.0.0")] | |
+ [SupportedOSPlatform ("maccatalyst11.0.0")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } else { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } | |
+ } | |
+ } | |
} /* class SWCollaborationMetadata */ | |
} | |
diff --git a/old/ios/native/SharedWithYouCore/SWCollaborationMetadata.g.cs b/new/ios/native/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
index f5fa09e..d89a8eb 100644 | |
--- a/old/ios/native/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
+++ b/new/ios/native/SharedWithYouCore/SWCollaborationMetadata.g.cs | |
@@ -54,7 +54,7 @@ namespace SharedWithYouCore { | |
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
- public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSMutableCopying, INSSecureCoding { | |
+ public unsafe partial class SWCollaborationMetadata : NSObject, INSCoding, INSCopying, INSItemProviderReading, INSItemProviderWriting, INSMutableCopying, INSSecureCoding { | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
#if ARCH_32 | |
#pragma warning disable 649 | |
@@ -139,6 +139,117 @@ namespace SharedWithYouCore { | |
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | |
} | |
} | |
+ [Export ("itemProviderVisibilityForRepresentationWithTypeIdentifier:")] | |
+ [Introduced (PlatformName.WatchOS, 4,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public virtual NSItemProviderRepresentationVisibility GetItemProviderVisibilityForTypeIdentifier (string typeIdentifier) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ NSItemProviderRepresentationVisibility ret; | |
+ if (IsDirectBinding) { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } else { | |
+ ret = (NSItemProviderRepresentationVisibility) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), nstypeIdentifier); | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("objectWithItemProviderData:typeIdentifier:error:")] | |
+ [Introduced (PlatformName.WatchOS, 4,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public static INSItemProviderReading? GetObject (NSData data, string typeIdentifier, out NSError? outError) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ IntPtr outErrorValue = IntPtr.Zero; | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ INSItemProviderReading? ret; | |
+ ret = Runtime.GetINativeObject<INSItemProviderReading> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("objectWithItemProviderData:typeIdentifier:error:"), data__handle__, nstypeIdentifier, ref outErrorValue), false)!; | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ outError = Runtime.GetNSObject<NSError> (outErrorValue)!; | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")] | |
+ [Introduced (PlatformName.WatchOS, 4,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual NSProgress? LoadData (string typeIdentifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V19))]global::System.Action<NSData, NSError> completionHandler) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (typeIdentifier is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (typeIdentifier)); | |
+ if (completionHandler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler)); | |
+ var nstypeIdentifier = CFString.CreateNative (typeIdentifier); | |
+ BlockLiteral *block_ptr_completionHandler; | |
+ BlockLiteral block_completionHandler; | |
+ block_completionHandler = new BlockLiteral (); | |
+ block_ptr_completionHandler = &block_completionHandler; | |
+ block_completionHandler.SetupBlockUnsafe (Trampolines.SDActionArity2V19.Handler, completionHandler); | |
+ NSProgress? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSProgress> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), nstypeIdentifier, (IntPtr) block_ptr_completionHandler))!; | |
+ } | |
+ CFString.ReleaseNative (nstypeIdentifier); | |
+ block_ptr_completionHandler->CleanupBlock (); | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Introduced (PlatformName.WatchOS, 4,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
+ [Introduced (PlatformName.WatchOS, 4,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task<NSData> LoadDataAsync (string typeIdentifier, out NSProgress result) | |
+ { | |
+ var tcs = new TaskCompletionSource<NSData> (); | |
+ result = LoadData(typeIdentifier, (arg1_, arg2_) => { | |
+ if (arg2_ != null) | |
+ tcs.SetException (new NSErrorException(arg2_)); | |
+ else | |
+ tcs.SetResult (arg1_!); | |
+ })!; | |
+ return tcs.Task; | |
+ } | |
[Export ("mutableCopyWithZone:")] | |
[return: ReleaseAttribute ()] | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -275,6 +386,20 @@ namespace SharedWithYouCore { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public static string[] ReadableTypeIdentifiers { | |
+ [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("readableTypeIdentifiersForItemProvider")))!; | |
+ #endif | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string? Title { | |
[Export ("title")] | |
get { | |
@@ -333,5 +458,37 @@ namespace SharedWithYouCore { | |
#endif | |
} | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public static string[] WritableTypeIdentifiers { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ #endif | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual string[] WritableTypeIdentifiersForItemProvider { | |
+ [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (IsDirectBinding) { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } else { | |
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("writableTypeIdentifiersForItemProvider")))!; | |
+ } | |
+ #endif | |
+ } | |
+ } | |
} /* class SWCollaborationMetadata */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment