Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 2, 2022 18:12
Show Gist options
  • Save vs-mobiletools-engineering-service2/620f252a39aedaae94edd9c15d072c29 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/620f252a39aedaae94edd9c15d072c29 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
index b310eb2..b6b810f 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -11747,6 +11747,47 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/dotnet/ios/generated-sources/Photos/PHAsset.g.cs b/new/dotnet/ios/generated-sources/Photos/PHAsset.g.cs
index e6ca13d..66587fc 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHAsset.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHAsset.g.cs
@@ -324,6 +324,29 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public virtual bool HasAdjustments {
+ [Export ("hasAdjustments")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAdjustments"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAdjustments"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/ios/generated-sources/Photos/PHAssetCollection.g.cs b/new/dotnet/ios/generated-sources/Photos/PHAssetCollection.g.cs
index a9d5b7d..d7d2785 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHAssetCollection.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHAssetCollection.g.cs
@@ -123,6 +123,22 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (class_ptr, Selector.GetHandle ("fetchAssetCollectionsContainingAsset:withType:options:"), asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ #if __IOS__
+ [Advice ("Starting with ios16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("ios16.0")]
+ #if __TVOS__
+ [Advice ("Starting with tvos16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("tvos16.0")]
+ #if __MACOS__
+ [Advice ("Starting with macos13.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("macos13.0")]
+ #if __MACCATALYST__ && !__IOS__
+ [Advice ("Starting with maccatalyst16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/ios/generated-sources/Photos/PHAssetCollectionSubtype.g.cs b/new/dotnet/ios/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
index 0ff4425..fbc3df4 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
@@ -112,6 +112,11 @@ namespace Photos {
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
SmartAlbumRAW = 217,
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/dotnet/ios/generated-sources/Photos/PHAssetMediaSubtype.g.cs b/new/dotnet/ios/generated-sources/Photos/PHAssetMediaSubtype.g.cs
index 6d77702..c0cabf7 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHAssetMediaSubtype.g.cs
@@ -77,5 +77,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/dotnet/ios/generated-sources/Photos/PHAssetResource.g.cs b/new/dotnet/ios/generated-sources/Photos/PHAssetResource.g.cs
index 9daab7e..f5e70a8 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHAssetResource.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHAssetResource.g.cs
@@ -131,6 +131,52 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelHeight {
+ [Export ("pixelHeight")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelHeight"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelHeight"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelWidth {
+ [Export ("pixelWidth")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelWidth"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelWidth"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/new/dotnet/ios/generated-sources/Photos/PHObjectType.g.cs b/new/dotnet/ios/generated-sources/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..8366fa1
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Photos/PHObjectType.g.cs
@@ -0,0 +1,62 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/Photos/PHPersistentChange.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..0804faf
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,127 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChange");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_IntPtr_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("changeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("changeToken")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..164d66d
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,106 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ #endif
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeToken.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..00bc810
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,132 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/dotnet/ios/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..0b22e62
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,180 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("objectType"));
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("objectType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/dotnet/ios/generated-sources/Photos/PHPhotoLibrary.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPhotoLibrary.g.cs
index cb7e7cc..6dc4e32 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHPhotoLibrary.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHPhotoLibrary.g.cs
@@ -70,6 +70,29 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
[Export ("authorizationStatusForAccessLevel:")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("macos11.0")]
@@ -369,6 +392,31 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Export ("currentChangeToken")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("currentChangeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("currentChangeToken")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/ios/generated-sources/Photos/PHPhotosError.g.cs b/new/dotnet/ios/generated-sources/Photos/PHPhotosError.g.cs
index 9aecf77..b033e0b 100644
--- a/old/dotnet/ios/generated-sources/Photos/PHPhotosError.g.cs
+++ b/new/dotnet/ios/generated-sources/Photos/PHPhotosError.g.cs
@@ -61,6 +61,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -72,6 +73,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHEditingExtensionContext.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHEditingExtensionContext.g.cs
index 043c21d..d2ba190 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHEditingExtensionContext.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHEditingExtensionContext.g.cs
@@ -55,9 +55,9 @@ namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
#if __IOS__
- [Advice ("Starting with ios13.0.")]
+ [Obsolete ("Starting with ios14.0.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
- [UnsupportedOSPlatform ("ios13.0")]
+ [UnsupportedOSPlatform ("ios14.0")]
public unsafe partial class PHEditingExtensionContext : NSExtensionContext {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("PHEditingExtensionContext");
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
index 969a39e..f82e681 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
@@ -57,6 +57,7 @@ namespace PhotosUI {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanBeginPlayback", Selector = "livePhotoView:canBeginPlaybackWithStyle:", ReturnType = typeof (bool), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillBeginPlayback", Selector = "livePhotoView:willBeginPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidEndPlayback", Selector = "livePhotoView:didEndPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
+ [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetExtraMinimumTouchDuration", Selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:", ReturnType = typeof (double), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (UITouch), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false, false })]
public partial interface IPHLivePhotoViewDelegate : INativeObject, IDisposable
{
}
@@ -98,6 +99,18 @@ namespace PhotosUI {
var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:didEndPlaybackWithStyle:"), livePhotoView__handle__, (IntPtr) (long) playbackStyle);
}
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
+ var touch__handle__ = touch!.GetNonNullHandle (nameof (touch));
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend_NativeHandle_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:"), livePhotoView__handle__, touch__handle__, (IntPtr) (long) playbackStyle);
+ }
}
internal sealed class PHLivePhotoViewDelegateWrapper : BaseWrapper, IPHLivePhotoViewDelegate {
[Preserve (Conditional = true)]
@@ -164,6 +177,16 @@ namespace PhotosUI {
{
throw new You_Should_Not_Call_base_In_This_Method ();
}
+ [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
[Export ("livePhotoView:willBeginPlaybackWithStyle:")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("ios9.1")]
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfiguration.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
index 6a05159..093fb5f 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerConfiguration", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -96,7 +96,7 @@ namespace PhotosUI {
[Export ("initWithPhotoLibrary:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -118,7 +118,7 @@ namespace PhotosUI {
[Export ("copyWithZone:")]
[return: ReleaseAttribute ()]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -138,13 +138,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerFilter? Filter {
[Export ("filter", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -163,7 +163,7 @@ namespace PhotosUI {
}
[Export ("setFilter:", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -182,13 +182,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode {
[Export ("preferredAssetRepresentationMode", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -207,7 +207,7 @@ namespace PhotosUI {
}
[Export ("setPreferredAssetRepresentationMode:", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -227,11 +227,11 @@ namespace PhotosUI {
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
public virtual string[] PreselectedAssetIdentifiers {
[Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -248,7 +248,7 @@ namespace PhotosUI {
}
[Export ("setPreselectedAssetIdentifiers:", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -272,11 +272,11 @@ namespace PhotosUI {
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
public virtual PHPickerConfigurationSelection Selection {
[Export ("selection", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -295,7 +295,7 @@ namespace PhotosUI {
}
[Export ("setSelection:", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -313,13 +313,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual nint SelectionLimit {
[Export ("selectionLimit")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -336,7 +336,7 @@ namespace PhotosUI {
}
[Export ("setSelectionLimit:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
index 64508ac..b8bc9e9 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -50,8 +50,8 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Native]
public enum PHPickerConfigurationAssetRepresentationMode : long {
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
index a742655..11d6538 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[Native]
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerFilter.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerFilter.g.cs
index 1ae2105..1b4fe8d 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerFilter.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerFilter.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerFilter", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -80,7 +80,7 @@ namespace PhotosUI {
[Export ("copyWithZone:")]
[return: ReleaseAttribute ()]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -98,9 +98,30 @@ namespace PhotosUI {
global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
return ret!;
}
+ [Export ("allFilterMatchingSubfilters:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("allFilterMatchingSubfilters:"), nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ #endif
+ }
[Export ("anyFilterMatchingSubfilters:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -119,15 +140,112 @@ namespace PhotosUI {
return ret!;
#endif
}
+ [Export ("notFilterOfSubfilter:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("notFilterOfSubfilter:"), subfilter__handle__))!;
+ #endif
+ }
+ [Export ("playbackStyleFilter:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("playbackStyleFilter:"), (IntPtr) (long) playbackStyle))!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter BurstsFilter {
+ [Export ("burstsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("burstsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Export ("cinematicVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("cinematicVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Export ("depthEffectPhotosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("depthEffectPhotosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter ImagesFilter {
[Export ("imagesFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -143,13 +261,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter LivePhotosFilter {
[Export ("livePhotosFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -165,13 +283,123 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter PanoramasFilter {
+ [Export ("panoramasFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("panoramasFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Export ("screenRecordingsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("screenRecordingsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Export ("screenshotsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("screenshotsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Export ("slomoVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("slomoVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Export ("timelapseVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("timelapseVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter VideosFilter {
[Export ("videosFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerResult.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerResult.g.cs
index 4222a10..5f2b7e2 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerResult.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerResult.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerResult", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -79,13 +79,13 @@ namespace PhotosUI {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual string? AssetIdentifier {
[Export ("assetIdentifier")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -103,13 +103,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual NSItemProvider ItemProvider {
[Export ("itemProvider")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerViewController.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerViewController.g.cs
index 4e617e3..1492e75 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerViewController.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerViewController.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerViewController", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -97,7 +97,7 @@ namespace PhotosUI {
[Export ("initWithConfiguration:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[DesignatedInitializer]
@@ -117,15 +117,63 @@ namespace PhotosUI {
}
#endif
}
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ #endif
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerConfiguration Configuration {
[Export ("configuration", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -145,19 +193,19 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public IPHPickerViewControllerDelegate Delegate {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
return (WeakDelegate as IPHPickerViewControllerDelegate)!;
}
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -171,13 +219,13 @@ namespace PhotosUI {
object? __mt_WeakDelegate_var;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual NSObject? WeakDelegate {
[Export ("delegate", ArgumentSemantic.Weak)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -198,7 +246,7 @@ namespace PhotosUI {
}
[Export ("setDelegate:", ArgumentSemantic.Weak)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
diff --git a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
index e017847..5f94ef6 100644
--- a/old/dotnet/ios/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
+++ b/new/dotnet/ios/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
@@ -58,7 +58,7 @@ namespace PhotosUI {
public partial interface IPHPickerViewControllerDelegate : INativeObject, IDisposable
{
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -95,7 +95,7 @@ namespace PhotosUI {
[Register("Microsoft_iOS__PhotosUI_PHPickerViewControllerDelegate", false)]
[Model]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
@@ -129,7 +129,7 @@ namespace PhotosUI {
[Export ("picker:didFinishPicking:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
index e507fe6..f368062 100644
--- a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
@@ -472,6 +472,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (UIImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLook {
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
index 80f6844..800a32f 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -11225,6 +11225,47 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHAsset.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHAsset.g.cs
index f21e667..a8fee04 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHAsset.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHAsset.g.cs
@@ -295,6 +295,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public virtual bool HasAdjustments {
+ [Export ("hasAdjustments")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAdjustments"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAdjustments"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollection.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollection.g.cs
index 7cea384..2f9444e 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollection.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollection.g.cs
@@ -123,6 +123,22 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (class_ptr, Selector.GetHandle ("fetchAssetCollectionsContainingAsset:withType:options:"), asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ #if __IOS__
+ [Advice ("Starting with ios16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("ios16.0")]
+ #if __TVOS__
+ [Advice ("Starting with tvos16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("tvos16.0")]
+ #if __MACOS__
+ [Advice ("Starting with macos13.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("macos13.0")]
+ #if __MACCATALYST__ && !__IOS__
+ [Advice ("Starting with maccatalyst16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollectionSubtype.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
index 98fc434..90c3b5d 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
@@ -112,6 +112,11 @@ namespace Photos {
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
SmartAlbumRAW = 217,
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetMediaSubtype.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetMediaSubtype.g.cs
index d530dd2..4ed559b 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetMediaSubtype.g.cs
@@ -77,5 +77,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetResource.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetResource.g.cs
index 92e19f2..bfc55cb 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHAssetResource.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHAssetResource.g.cs
@@ -131,6 +131,44 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelHeight {
+ [Export ("pixelHeight")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelHeight"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelHeight"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelWidth {
+ [Export ("pixelWidth")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelWidth"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelWidth"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/new/dotnet/maccatalyst/generated-sources/Photos/PHObjectType.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..e190a68
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHObjectType.g.cs
@@ -0,0 +1,62 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChange.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..d0e0e5d
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,113 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_IntPtr_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("changeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("changeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..c7b8b0a
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,96 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeToken.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..513f994
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,122 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..e11493b
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,158 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("objectType"));
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("objectType"));
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHPhotoLibrary.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPhotoLibrary.g.cs
index dfc9964..d6afb69 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHPhotoLibrary.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPhotoLibrary.g.cs
@@ -70,6 +70,25 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("macos11.0")]
@@ -353,6 +372,27 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Export ("currentChangeToken")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("currentChangeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("currentChangeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/maccatalyst/generated-sources/Photos/PHPhotosError.g.cs b/new/dotnet/maccatalyst/generated-sources/Photos/PHPhotosError.g.cs
index b13e4c7..3d3c9cf 100644
--- a/old/dotnet/maccatalyst/generated-sources/Photos/PHPhotosError.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Photos/PHPhotosError.g.cs
@@ -61,6 +61,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -72,6 +73,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
index 1ba0261..79d379c 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
@@ -57,6 +57,7 @@ namespace PhotosUI {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanBeginPlayback", Selector = "livePhotoView:canBeginPlaybackWithStyle:", ReturnType = typeof (bool), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillBeginPlayback", Selector = "livePhotoView:willBeginPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidEndPlayback", Selector = "livePhotoView:didEndPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
+ [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetExtraMinimumTouchDuration", Selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:", ReturnType = typeof (double), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (UITouch), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false, false })]
public partial interface IPHLivePhotoViewDelegate : INativeObject, IDisposable
{
}
@@ -94,6 +95,18 @@ namespace PhotosUI {
var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:didEndPlaybackWithStyle:"), livePhotoView__handle__, (IntPtr) (long) playbackStyle);
}
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
+ var touch__handle__ = touch!.GetNonNullHandle (nameof (touch));
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend_NativeHandle_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:"), livePhotoView__handle__, touch__handle__, (IntPtr) (long) playbackStyle);
+ }
}
internal sealed class PHLivePhotoViewDelegateWrapper : BaseWrapper, IPHLivePhotoViewDelegate {
[Preserve (Conditional = true)]
@@ -156,6 +169,16 @@ namespace PhotosUI {
{
throw new You_Should_Not_Call_base_In_This_Method ();
}
+ [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
[Export ("livePhotoView:willBeginPlaybackWithStyle:")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("ios9.1")]
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfiguration.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
index a7f2c8c..08dcd73 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerConfiguration", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -86,7 +86,7 @@ namespace PhotosUI {
[Export ("initWithPhotoLibrary:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -104,7 +104,7 @@ namespace PhotosUI {
[Export ("copyWithZone:")]
[return: ReleaseAttribute ()]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -124,13 +124,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerFilter? Filter {
[Export ("filter", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -145,7 +145,7 @@ namespace PhotosUI {
}
[Export ("setFilter:", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -160,13 +160,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode {
[Export ("preferredAssetRepresentationMode", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -181,7 +181,7 @@ namespace PhotosUI {
}
[Export ("setPreferredAssetRepresentationMode:", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -197,11 +197,11 @@ namespace PhotosUI {
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
public virtual string[] PreselectedAssetIdentifiers {
[Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -214,7 +214,7 @@ namespace PhotosUI {
}
[Export ("setPreselectedAssetIdentifiers:", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -234,11 +234,11 @@ namespace PhotosUI {
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
public virtual PHPickerConfigurationSelection Selection {
[Export ("selection", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -253,7 +253,7 @@ namespace PhotosUI {
}
[Export ("setSelection:", ArgumentSemantic.UnsafeUnretained)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -267,13 +267,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual nint SelectionLimit {
[Export ("selectionLimit")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -286,7 +286,7 @@ namespace PhotosUI {
}
[Export ("setSelectionLimit:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
index 366af16..68b3188 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -50,8 +50,8 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Native]
public enum PHPickerConfigurationAssetRepresentationMode : long {
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
index 35bcb80..e8dfe9a 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[Native]
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerFilter.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerFilter.g.cs
index ac3226e..1414cbd 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerFilter.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerFilter.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerFilter", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -74,7 +74,7 @@ namespace PhotosUI {
[Export ("copyWithZone:")]
[return: ReleaseAttribute ()]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -92,9 +92,26 @@ namespace PhotosUI {
global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
return ret!;
}
+ [Export ("allFilterMatchingSubfilters:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("allFilterMatchingSubfilters:"), nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
[Export ("anyFilterMatchingSubfilters:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -109,15 +126,92 @@ namespace PhotosUI {
nsa_subfilters.Dispose ();
return ret!;
}
+ [Export ("notFilterOfSubfilter:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("notFilterOfSubfilter:"), subfilter__handle__))!;
+ }
+ [Export ("playbackStyleFilter:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("playbackStyleFilter:"), (IntPtr) (long) playbackStyle))!;
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter BurstsFilter {
+ [Export ("burstsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("burstsFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Export ("cinematicVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("cinematicVideosFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Export ("depthEffectPhotosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("depthEffectPhotosFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter ImagesFilter {
[Export ("imagesFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -129,13 +223,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter LivePhotosFilter {
[Export ("livePhotosFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -147,13 +241,103 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter PanoramasFilter {
+ [Export ("panoramasFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("panoramasFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Export ("screenRecordingsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("screenRecordingsFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Export ("screenshotsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("screenshotsFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Export ("slomoVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("slomoVideosFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Export ("timelapseVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("timelapseVideosFilter")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public static PHPickerFilter VideosFilter {
[Export ("videosFilter")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerResult.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerResult.g.cs
index 7637087..606ab85 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerResult.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerResult.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerResult", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -73,13 +73,13 @@ namespace PhotosUI {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual string? AssetIdentifier {
[Export ("assetIdentifier")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -93,13 +93,13 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual NSItemProvider ItemProvider {
[Export ("itemProvider")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewController.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewController.g.cs
index acde887..591f325 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewController.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewController.g.cs
@@ -51,7 +51,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Register("PHPickerViewController", true)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Advice (@"This type should not be subclassed.")]
@@ -87,7 +87,7 @@ namespace PhotosUI {
[Export ("initWithConfiguration:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[DesignatedInitializer]
@@ -103,15 +103,55 @@ namespace PhotosUI {
InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithConfiguration:"), configuration__handle__), "initWithConfiguration:");
}
}
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual PHPickerConfiguration Configuration {
[Export ("configuration", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -127,19 +167,19 @@ namespace PhotosUI {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public IPHPickerViewControllerDelegate Delegate {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
return (WeakDelegate as IPHPickerViewControllerDelegate)!;
}
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
@@ -153,13 +193,13 @@ namespace PhotosUI {
object? __mt_WeakDelegate_var;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public virtual NSObject? WeakDelegate {
[Export ("delegate", ArgumentSemantic.Weak)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
get {
@@ -176,7 +216,7 @@ namespace PhotosUI {
}
[Export ("setDelegate:", ArgumentSemantic.Weak)]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
set {
diff --git a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
index 28e4e75..28939b9 100644
--- a/old/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
#endif
namespace PhotosUI {
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
@@ -58,7 +58,7 @@ namespace PhotosUI {
public partial interface IPHPickerViewControllerDelegate : INativeObject, IDisposable
{
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -91,7 +91,7 @@ namespace PhotosUI {
[Register("Microsoft_MacCatalyst__PhotosUI_PHPickerViewControllerDelegate", false)]
[Model]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
@@ -121,7 +121,7 @@ namespace PhotosUI {
[Export ("picker:didFinishPicking:")]
[UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
index 8a63b2f..51bbe86 100644
--- a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
@@ -453,6 +453,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (UIImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLook {
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
index f95d2c1..0cf8ff4 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -12213,6 +12213,47 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/dotnet/macos/generated-sources/Photos/PHAsset.g.cs b/new/dotnet/macos/generated-sources/Photos/PHAsset.g.cs
index 1d078df..cd72cec 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHAsset.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHAsset.g.cs
@@ -87,6 +87,9 @@ namespace Photos {
const string selFetchKeyAssetsInAssetCollection_Options_ = "fetchKeyAssetsInAssetCollection:options:";
static readonly NativeHandle selFetchKeyAssetsInAssetCollection_Options_Handle = Selector.GetHandle ("fetchKeyAssetsInAssetCollection:options:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selHasAdjustments = "hasAdjustments";
+ static readonly NativeHandle selHasAdjustmentsHandle = Selector.GetHandle ("hasAdjustments");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selIsFavorite = "isFavorite";
static readonly NativeHandle selIsFavoriteHandle = Selector.GetHandle ("isFavorite");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -350,6 +353,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public virtual bool HasAdjustments {
+ [Export ("hasAdjustments")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selHasAdjustmentsHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selHasAdjustmentsHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/macos/generated-sources/Photos/PHAssetCollection.g.cs b/new/dotnet/macos/generated-sources/Photos/PHAssetCollection.g.cs
index 1baeb6f..7b9b997 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHAssetCollection.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHAssetCollection.g.cs
@@ -157,6 +157,22 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (class_ptr, selFetchAssetCollectionsContainingAsset_WithType_Options_Handle, asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ #if __IOS__
+ [Advice ("Starting with ios16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("ios16.0")]
+ #if __TVOS__
+ [Advice ("Starting with tvos16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("tvos16.0")]
+ #if __MACOS__
+ [Advice ("Starting with macos13.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("macos13.0")]
+ #if __MACCATALYST__ && !__IOS__
+ [Advice ("Starting with maccatalyst16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/macos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs b/new/dotnet/macos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
index c13b718..eed8554 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
@@ -107,6 +107,11 @@ namespace Photos {
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
SmartAlbumRAW = 217,
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/dotnet/macos/generated-sources/Photos/PHAssetMediaSubtype.g.cs b/new/dotnet/macos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
index 90a60a0..bd7698e 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
@@ -72,5 +72,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/dotnet/macos/generated-sources/Photos/PHAssetResource.g.cs b/new/dotnet/macos/generated-sources/Photos/PHAssetResource.g.cs
index 6944d34..83939bd 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHAssetResource.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHAssetResource.g.cs
@@ -63,6 +63,12 @@ namespace Photos {
const string selOriginalFilename = "originalFilename";
static readonly NativeHandle selOriginalFilenameHandle = Selector.GetHandle ("originalFilename");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelHeight = "pixelHeight";
+ static readonly NativeHandle selPixelHeightHandle = Selector.GetHandle ("pixelHeight");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelWidth = "pixelWidth";
+ static readonly NativeHandle selPixelWidthHandle = Selector.GetHandle ("pixelWidth");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selType = "type";
static readonly NativeHandle selTypeHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -144,6 +150,44 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelHeight {
+ [Export ("pixelHeight")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelHeightHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelHeightHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelWidth {
+ [Export ("pixelWidth")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelWidthHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelWidthHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/new/dotnet/macos/generated-sources/Photos/PHObjectType.g.cs b/new/dotnet/macos/generated-sources/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..d0c573e
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Photos/PHObjectType.g.cs
@@ -0,0 +1,57 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/Photos/PHPersistentChange.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..ddae424
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,114 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeDetailsForObjectType_Error_ = "changeDetailsForObjectType:error:";
+ static readonly NativeHandle selChangeDetailsForObjectType_Error_Handle = Selector.GetHandle ("changeDetailsForObjectType:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeToken = "changeToken";
+ static readonly NativeHandle selChangeTokenHandle = Selector.GetHandle ("changeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_ref_NativeHandle (this.Handle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_IntPtr_ref_NativeHandle (this.SuperHandle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..8624c55
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,94 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEnumerateChangesWithBlock_ = "enumerateChangesWithBlock:";
+ static readonly NativeHandle selEnumerateChangesWithBlock_Handle = Selector.GetHandle ("enumerateChangesWithBlock:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeToken.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..cedd587
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,126 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly NativeHandle selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_ = "encodeWithCoder:";
+ static readonly NativeHandle selEncodeWithCoder_Handle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_ = "initWithCoder:";
+ static readonly NativeHandle selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selEncodeWithCoder_Handle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selEncodeWithCoder_Handle, encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/dotnet/macos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..f79c6d5
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,165 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeletedLocalIdentifiers = "deletedLocalIdentifiers";
+ static readonly NativeHandle selDeletedLocalIdentifiersHandle = Selector.GetHandle ("deletedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInsertedLocalIdentifiers = "insertedLocalIdentifiers";
+ static readonly NativeHandle selInsertedLocalIdentifiersHandle = Selector.GetHandle ("insertedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selObjectType = "objectType";
+ static readonly NativeHandle selObjectTypeHandle = Selector.GetHandle ("objectType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selUpdatedLocalIdentifiers = "updatedLocalIdentifiers";
+ static readonly NativeHandle selUpdatedLocalIdentifiersHandle = Selector.GetHandle ("updatedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selDeletedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selDeletedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selInsertedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selInsertedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selObjectTypeHandle);
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selObjectTypeHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selUpdatedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selUpdatedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/dotnet/macos/generated-sources/Photos/PHPhotoLibrary.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPhotoLibrary.g.cs
index 0892edb..dc26cdd 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHPhotoLibrary.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHPhotoLibrary.g.cs
@@ -57,6 +57,12 @@ namespace Photos {
const string selAuthorizationStatusForAccessLevel_ = "authorizationStatusForAccessLevel:";
static readonly NativeHandle selAuthorizationStatusForAccessLevel_Handle = Selector.GetHandle ("authorizationStatusForAccessLevel:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCurrentChangeToken = "currentChangeToken";
+ static readonly NativeHandle selCurrentChangeTokenHandle = Selector.GetHandle ("currentChangeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFetchPersistentChangesSinceToken_Error_ = "fetchPersistentChangesSinceToken:error:";
+ static readonly NativeHandle selFetchPersistentChangesSinceToken_Error_Handle = Selector.GetHandle ("fetchPersistentChangesSinceToken:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPerformChanges_CompletionHandler_ = "performChanges:completionHandler:";
static readonly NativeHandle selPerformChanges_CompletionHandler_Handle = Selector.GetHandle ("performChanges:completionHandler:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -101,6 +107,25 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_ref_NativeHandle (this.SuperHandle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("macos11.0")]
@@ -384,6 +409,27 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Export ("currentChangeToken")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selCurrentChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selCurrentChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/macos/generated-sources/Photos/PHPhotosError.g.cs b/new/dotnet/macos/generated-sources/Photos/PHPhotosError.g.cs
index 9ad862e..fbcc02a 100644
--- a/old/dotnet/macos/generated-sources/Photos/PHPhotosError.g.cs
+++ b/new/dotnet/macos/generated-sources/Photos/PHPhotosError.g.cs
@@ -56,6 +56,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -67,6 +68,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfiguration.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
new file mode 100644
index 0000000..52af14b
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfiguration.g.cs
@@ -0,0 +1,333 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerConfiguration", true)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly NativeHandle selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFilter = "filter";
+ static readonly NativeHandle selFilterHandle = Selector.GetHandle ("filter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPhotoLibrary_ = "initWithPhotoLibrary:";
+ static readonly NativeHandle selInitWithPhotoLibrary_Handle = Selector.GetHandle ("initWithPhotoLibrary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreferredAssetRepresentationMode = "preferredAssetRepresentationMode";
+ static readonly NativeHandle selPreferredAssetRepresentationModeHandle = Selector.GetHandle ("preferredAssetRepresentationMode");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreselectedAssetIdentifiers = "preselectedAssetIdentifiers";
+ static readonly NativeHandle selPreselectedAssetIdentifiersHandle = Selector.GetHandle ("preselectedAssetIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelection = "selection";
+ static readonly NativeHandle selSelectionHandle = Selector.GetHandle ("selection");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelectionLimit = "selectionLimit";
+ static readonly NativeHandle selSelectionLimitHandle = Selector.GetHandle ("selectionLimit");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFilter_ = "setFilter:";
+ static readonly NativeHandle selSetFilter_Handle = Selector.GetHandle ("setFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreferredAssetRepresentationMode_ = "setPreferredAssetRepresentationMode:";
+ static readonly NativeHandle selSetPreferredAssetRepresentationMode_Handle = Selector.GetHandle ("setPreferredAssetRepresentationMode:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreselectedAssetIdentifiers_ = "setPreselectedAssetIdentifiers:";
+ static readonly NativeHandle selSetPreselectedAssetIdentifiers_Handle = Selector.GetHandle ("setPreselectedAssetIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelection_ = "setSelection:";
+ static readonly NativeHandle selSetSelection_Handle = Selector.GetHandle ("setSelection:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelectionLimit_ = "setSelectionLimit:";
+ static readonly NativeHandle selSetSelectionLimit_Handle = Selector.GetHandle ("setSelectionLimit:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPickerConfiguration");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public PHPickerConfiguration () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerConfiguration (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithPhotoLibrary:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerConfiguration (global::Photos.PHPhotoLibrary photoLibrary)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var photoLibrary__handle__ = photoLibrary!.GetNonNullHandle (nameof (photoLibrary));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual PHPickerFilter? Filter {
+ [Export ("filter", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selFilterHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selFilterHandle))!;
+ }
+ return ret!;
+ }
+ [Export ("setFilter:", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetFilter_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetFilter_Handle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode {
+ [Export ("preferredAssetRepresentationMode", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationAssetRepresentationMode ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPreferredAssetRepresentationModeHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPreferredAssetRepresentationModeHandle);
+ }
+ return ret!;
+ }
+ [Export ("setPreferredAssetRepresentationMode:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ public virtual string[] PreselectedAssetIdentifiers {
+ [Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selPreselectedAssetIdentifiersHandle))!;
+ } else {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selPreselectedAssetIdentifiersHandle))!;
+ }
+ }
+ [Export ("setPreselectedAssetIdentifiers:", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsa_value = NSArray.FromStrings (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ }
+ nsa_value.Dispose ();
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ public virtual PHPickerConfigurationSelection Selection {
+ [Export ("selection", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationSelection ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionHandle);
+ }
+ return ret!;
+ }
+ [Export ("setSelection:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelection_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelection_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual nint SelectionLimit {
+ [Export ("selectionLimit")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionLimitHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionLimitHandle);
+ }
+ }
+ [Export ("setSelectionLimit:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelectionLimit_Handle, value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelectionLimit_Handle, value);
+ }
+ }
+ }
+ } /* class PHPickerConfiguration */
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
new file mode 100644
index 0000000..18b11c6
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -0,0 +1,57 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Native]
+ public enum PHPickerConfigurationAssetRepresentationMode : long {
+ Automatic = 0,
+ Current = 1,
+ Compatible = 2,
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
new file mode 100644
index 0000000..702c1dd
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [Native]
+ public enum PHPickerConfigurationSelection : long {
+ Default = 0,
+ Ordered = 1,
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerFilter.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerFilter.g.cs
new file mode 100644
index 0000000..7d4e496
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerFilter.g.cs
@@ -0,0 +1,394 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerFilter", true)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerFilter : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAllFilterMatchingSubfilters_ = "allFilterMatchingSubfilters:";
+ static readonly NativeHandle selAllFilterMatchingSubfilters_Handle = Selector.GetHandle ("allFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAnyFilterMatchingSubfilters_ = "anyFilterMatchingSubfilters:";
+ static readonly NativeHandle selAnyFilterMatchingSubfilters_Handle = Selector.GetHandle ("anyFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBurstsFilter = "burstsFilter";
+ static readonly NativeHandle selBurstsFilterHandle = Selector.GetHandle ("burstsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCinematicVideosFilter = "cinematicVideosFilter";
+ static readonly NativeHandle selCinematicVideosFilterHandle = Selector.GetHandle ("cinematicVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly NativeHandle selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDepthEffectPhotosFilter = "depthEffectPhotosFilter";
+ static readonly NativeHandle selDepthEffectPhotosFilterHandle = Selector.GetHandle ("depthEffectPhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selImagesFilter = "imagesFilter";
+ static readonly NativeHandle selImagesFilterHandle = Selector.GetHandle ("imagesFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLivePhotosFilter = "livePhotosFilter";
+ static readonly NativeHandle selLivePhotosFilterHandle = Selector.GetHandle ("livePhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNotFilterOfSubfilter_ = "notFilterOfSubfilter:";
+ static readonly NativeHandle selNotFilterOfSubfilter_Handle = Selector.GetHandle ("notFilterOfSubfilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPanoramasFilter = "panoramasFilter";
+ static readonly NativeHandle selPanoramasFilterHandle = Selector.GetHandle ("panoramasFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPlaybackStyleFilter_ = "playbackStyleFilter:";
+ static readonly NativeHandle selPlaybackStyleFilter_Handle = Selector.GetHandle ("playbackStyleFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenRecordingsFilter = "screenRecordingsFilter";
+ static readonly NativeHandle selScreenRecordingsFilterHandle = Selector.GetHandle ("screenRecordingsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenshotsFilter = "screenshotsFilter";
+ static readonly NativeHandle selScreenshotsFilterHandle = Selector.GetHandle ("screenshotsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSlomoVideosFilter = "slomoVideosFilter";
+ static readonly NativeHandle selSlomoVideosFilterHandle = Selector.GetHandle ("slomoVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTimelapseVideosFilter = "timelapseVideosFilter";
+ static readonly NativeHandle selTimelapseVideosFilterHandle = Selector.GetHandle ("timelapseVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVideosFilter = "videosFilter";
+ static readonly NativeHandle selVideosFilterHandle = Selector.GetHandle ("videosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPickerFilter");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerFilter (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerFilter (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("allFilterMatchingSubfilters:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, selAllFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("anyFilterMatchingSubfilters:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, selAnyFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("notFilterOfSubfilter:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, selNotFilterOfSubfilter_Handle, subfilter__handle__))!;
+ }
+ [Export ("playbackStyleFilter:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr (class_ptr, selPlaybackStyleFilter_Handle, (IntPtr) (long) playbackStyle))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter BurstsFilter {
+ [Export ("burstsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selBurstsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Export ("cinematicVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selCinematicVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Export ("depthEffectPhotosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selDepthEffectPhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public static PHPickerFilter ImagesFilter {
+ [Export ("imagesFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selImagesFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public static PHPickerFilter LivePhotosFilter {
+ [Export ("livePhotosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selLivePhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter PanoramasFilter {
+ [Export ("panoramasFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selPanoramasFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Export ("screenRecordingsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selScreenRecordingsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Export ("screenshotsFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selScreenshotsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Export ("slomoVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selSlomoVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Export ("timelapseVideosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selTimelapseVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public static PHPickerFilter VideosFilter {
+ [Export ("videosFilter")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ } /* class PHPickerFilter */
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerResult.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerResult.g.cs
new file mode 100644
index 0000000..d889465
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerResult.g.cs
@@ -0,0 +1,118 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerResult", true)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAssetIdentifier = "assetIdentifier";
+ static readonly NativeHandle selAssetIdentifierHandle = Selector.GetHandle ("assetIdentifier");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selItemProvider = "itemProvider";
+ static readonly NativeHandle selItemProviderHandle = Selector.GetHandle ("itemProvider");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPickerResult");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerResult (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual string? AssetIdentifier {
+ [Export ("assetIdentifier")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selAssetIdentifierHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selAssetIdentifierHandle))!;
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual NSItemProvider ItemProvider {
+ [Export ("itemProvider")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSItemProvider? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selItemProviderHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selItemProviderHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPickerResult */
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewController.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewController.g.cs
new file mode 100644
index 0000000..0cc6f68
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewController.g.cs
@@ -0,0 +1,256 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerViewController", true)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerViewController : global::AppKit.NSViewController {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selConfiguration = "configuration";
+ static readonly NativeHandle selConfigurationHandle = Selector.GetHandle ("configuration");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDelegate = "delegate";
+ static readonly NativeHandle selDelegateHandle = Selector.GetHandle ("delegate");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeselectAssetsWithIdentifiers_ = "deselectAssetsWithIdentifiers:";
+ static readonly NativeHandle selDeselectAssetsWithIdentifiers_Handle = Selector.GetHandle ("deselectAssetsWithIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithConfiguration_ = "initWithConfiguration:";
+ static readonly NativeHandle selInitWithConfiguration_Handle = Selector.GetHandle ("initWithConfiguration:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selMoveAssetWithIdentifier_AfterAssetWithIdentifier_ = "moveAssetWithIdentifier:afterAssetWithIdentifier:";
+ static readonly NativeHandle selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle = Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetDelegate_ = "setDelegate:";
+ static readonly NativeHandle selSetDelegate_Handle = Selector.GetHandle ("setDelegate:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPickerViewController");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPickerViewController (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewController (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewController (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithConfiguration:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [DesignatedInitializer]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerViewController (PHPickerConfiguration configuration)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ }
+ }
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual PHPickerConfiguration Configuration {
+ [Export ("configuration", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selConfigurationHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selConfigurationHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public IPHPickerViewControllerDelegate Delegate {
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ return (WeakDelegate as IPHPickerViewControllerDelegate)!;
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ var rvalue = value as NSObject;
+ if (!(value is null) && rvalue is null)
+ throw new ArgumentException ("The object passed of type " + value.GetType () + " does not derive from NSObject");
+ WeakDelegate = rvalue;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ object? __mt_WeakDelegate_var;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public virtual NSObject? WeakDelegate {
+ [Export ("delegate", ArgumentSemantic.Weak)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selDelegateHandle))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selDelegateHandle))!;
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = ret;
+ return ret!;
+ }
+ [Export ("setDelegate:", ArgumentSemantic.Weak)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetDelegate_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetDelegate_Handle, value__handle__);
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = value;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ protected override void Dispose (bool disposing)
+ {
+ base.Dispose (disposing);
+ if (Handle == IntPtr.Zero) {
+ __mt_WeakDelegate_var = null;
+ }
+ }
+ } /* class PHPickerViewController */
+}
diff --git a/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
new file mode 100644
index 0000000..0bf6e80
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -0,0 +1,128 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
+ [ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidFinishPicking", Selector = "picker:didFinishPicking:", ParameterType = new Type [] { typeof (PhotosUI.PHPickerViewController), typeof (PhotosUI.PHPickerResult[]) }, ParameterByRef = new bool [] { false, false })]
+ public partial interface IPHPickerViewControllerDelegate : INativeObject, IDisposable
+ {
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Export ("picker:didFinishPicking:")]
+ [Preserve (Conditional = true)]
+ void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
+ }
+ internal sealed class PHPickerViewControllerDelegateWrapper : BaseWrapper, IPHPickerViewControllerDelegate {
+ [Preserve (Conditional = true)]
+ public PHPickerViewControllerDelegateWrapper (NativeHandle handle, bool owns)
+ : base (handle, owns)
+ {
+ }
+ [Export ("picker:didFinishPicking:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var picker__handle__ = picker!.GetNonNullHandle (nameof (picker));
+ if (results is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (results));
+ var nsa_results = NSArray.FromNSObjects (results);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("picker:didFinishPicking:"), picker__handle__, nsa_results.Handle);
+ nsa_results.Dispose ();
+ }
+ }
+}
+namespace PhotosUI {
+ [Protocol()]
+ [Register("Microsoft_macOS__PhotosUI_PHPickerViewControllerDelegate", false)]
+ [Model]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ protected PHPickerViewControllerDelegate () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ IsDirectBinding = false;
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewControllerDelegate (NSObjectFlag t) : base (t)
+ {
+ IsDirectBinding = false;
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewControllerDelegate (NativeHandle handle) : base (handle)
+ {
+ IsDirectBinding = false;
+ }
+
+ [Export ("picker:didFinishPicking:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios14.0")]
+ [SupportedOSPlatform ("maccatalyst14.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
+ } /* class PHPickerViewControllerDelegate */
+}
diff --git a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
index a078023..c87c0f9 100644
--- a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
@@ -580,6 +580,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (NSImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLookUI {
diff --git a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
index 25ad11b..cf27dd4 100644
--- a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -7494,6 +7494,47 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, NativeHandle change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHAsset.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHAsset.g.cs
index 273f138..511e100 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHAsset.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHAsset.g.cs
@@ -311,6 +311,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ public virtual bool HasAdjustments {
+ [Export ("hasAdjustments")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAdjustments"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAdjustments"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHAssetCollection.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHAssetCollection.g.cs
index 6566bad..60177b3 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHAssetCollection.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHAssetCollection.g.cs
@@ -114,6 +114,22 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (class_ptr, Selector.GetHandle ("fetchAssetCollectionsContainingAsset:withType:options:"), asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ #if __IOS__
+ [Advice ("Starting with ios16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("ios16.0")]
+ #if __TVOS__
+ [Advice ("Starting with tvos16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("tvos16.0")]
+ #if __MACOS__
+ [Advice ("Starting with macos13.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("macos13.0")]
+ #if __MACCATALYST__ && !__IOS__
+ [Advice ("Starting with maccatalyst16.0 Will be removed in a future release.")]
+ #endif
+ [UnsupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
index d94e061..3c035d9 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHAssetCollectionSubtype.g.cs
@@ -103,6 +103,11 @@ namespace Photos {
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
SmartAlbumRAW = 217,
+ [SupportedOSPlatform ("ios15.0")]
+ [SupportedOSPlatform ("tvos15.0")]
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("maccatalyst15.0")]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHAssetMediaSubtype.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
index 2b66ddb..d239dbc 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHAssetMediaSubtype.g.cs
@@ -68,5 +68,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHAssetResource.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHAssetResource.g.cs
index 4c00913..f5dc186 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHAssetResource.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHAssetResource.g.cs
@@ -122,6 +122,44 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelHeight {
+ [Export ("pixelHeight")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelHeight"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelHeight"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint PixelWidth {
+ [Export ("pixelWidth")]
+ [SupportedOSPlatform ("ios9.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.15")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelWidth"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelWidth"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/new/dotnet/tvos/generated-sources/Photos/PHObjectType.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..f6a8c28
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/Photos/PHObjectType.g.cs
@@ -0,0 +1,53 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/dotnet/tvos/generated-sources/Photos/PHPersistentChange.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..9f75108
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,104 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_IntPtr_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("changeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("changeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..6b912c6
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,87 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeToken.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..95a622e
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,113 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/dotnet/tvos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..af798f2
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,149 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("objectType"));
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("objectType"));
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHPhotoLibrary.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPhotoLibrary.g.cs
index 0673d12..269de6a 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHPhotoLibrary.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPhotoLibrary.g.cs
@@ -61,6 +61,25 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ NativeHandle errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_ref_NativeHandle (this.SuperHandle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("macos11.0")]
@@ -344,6 +363,27 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos16.0")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Export ("currentChangeToken")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("macos10.13")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("currentChangeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("currentChangeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("macos10.13")]
diff --git a/old/dotnet/tvos/generated-sources/Photos/PHPhotosError.g.cs b/new/dotnet/tvos/generated-sources/Photos/PHPhotosError.g.cs
index 4e1042a..ef7d501 100644
--- a/old/dotnet/tvos/generated-sources/Photos/PHPhotosError.g.cs
+++ b/new/dotnet/tvos/generated-sources/Photos/PHPhotosError.g.cs
@@ -52,6 +52,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -63,6 +64,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
diff --git a/old/dotnet/tvos/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs b/new/dotnet/tvos/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
index 09ff30a..6ad59be 100644
--- a/old/dotnet/tvos/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
+++ b/new/dotnet/tvos/generated-sources/PhotosUI/PHLivePhotoViewDelegate.g.cs
@@ -48,6 +48,7 @@ namespace PhotosUI {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanBeginPlayback", Selector = "livePhotoView:canBeginPlaybackWithStyle:", ReturnType = typeof (bool), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillBeginPlayback", Selector = "livePhotoView:willBeginPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidEndPlayback", Selector = "livePhotoView:didEndPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
+ [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetExtraMinimumTouchDuration", Selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:", ReturnType = typeof (double), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (UITouch), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false, false })]
public partial interface IPHLivePhotoViewDelegate : INativeObject, IDisposable
{
}
@@ -85,6 +86,18 @@ namespace PhotosUI {
var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:didEndPlaybackWithStyle:"), livePhotoView__handle__, (IntPtr) (long) playbackStyle);
}
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
+ var touch__handle__ = touch!.GetNonNullHandle (nameof (touch));
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend_NativeHandle_NativeHandle_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:"), livePhotoView__handle__, touch__handle__, (IntPtr) (long) playbackStyle);
+ }
}
internal sealed class PHLivePhotoViewDelegateWrapper : BaseWrapper, IPHLivePhotoViewDelegate {
[Preserve (Conditional = true)]
@@ -147,6 +160,16 @@ namespace PhotosUI {
{
throw new You_Should_Not_Call_base_In_This_Method ();
}
+ [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")]
+ [SupportedOSPlatform ("tvos10.0")]
+ [SupportedOSPlatform ("ios9.1")]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("maccatalyst9.1")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
[Export ("livePhotoView:willBeginPlaybackWithStyle:")]
[SupportedOSPlatform ("tvos10.0")]
[SupportedOSPlatform ("ios9.1")]
diff --git a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
index b85a293..766fe5c 100644
--- a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
@@ -296,6 +296,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (UIImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace ReplayKit {
diff --git a/old/ios/native/ObjCRuntime/Trampolines.g.cs b/new/ios/native/ObjCRuntime/Trampolines.g.cs
index b9d905f..282aa90 100644
--- a/old/ios/native/ObjCRuntime/Trampolines.g.cs
+++ b/new/ios/native/ObjCRuntime/Trampolines.g.cs
@@ -11427,6 +11427,45 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/ios/native/Photos/PHAsset.g.cs b/new/ios/native/Photos/PHAsset.g.cs
index 5c937d1..707d500 100644
--- a/old/ios/native/Photos/PHAsset.g.cs
+++ b/new/ios/native/Photos/PHAsset.g.cs
@@ -254,6 +254,27 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual bool HasAdjustments {
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("hasAdjustments")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAdjustments"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAdjustments"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Hidden {
[Export ("isHidden")]
get {
diff --git a/old/ios/native/Photos/PHAssetCollection.g.cs b/new/ios/native/Photos/PHAssetCollection.g.cs
index f4ed94c..fad7c4d 100644
--- a/old/ios/native/Photos/PHAssetCollection.g.cs
+++ b/new/ios/native/Photos/PHAssetCollection.g.cs
@@ -109,6 +109,9 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (class_ptr, Selector.GetHandle ("fetchAssetCollectionsContainingAsset:withType:options:"), asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ [Deprecated (PlatformName.iOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.TvOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.MacOSX, 13,0, message: "Will be removed in a future release.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHFetchResult FetchAssetCollections (NSUrl[] assetGroupUrls, PHFetchOptions? options)
{
diff --git a/old/ios/native/Photos/PHAssetCollectionSubtype.g.cs b/new/ios/native/Photos/PHAssetCollectionSubtype.g.cs
index 4f9a9b6..7398c96 100644
--- a/old/ios/native/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/ios/native/Photos/PHAssetCollectionSubtype.g.cs
@@ -99,6 +99,11 @@ namespace Photos {
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
SmartAlbumRAW = 217,
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/ios/native/Photos/PHAssetMediaSubtype.g.cs b/new/ios/native/Photos/PHAssetMediaSubtype.g.cs
index 1b37871..e1912d6 100644
--- a/old/ios/native/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/ios/native/Photos/PHAssetMediaSubtype.g.cs
@@ -68,5 +68,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/ios/native/Photos/PHAssetResource.g.cs b/new/ios/native/Photos/PHAssetResource.g.cs
index 1927a3e..dd027ac 100644
--- a/old/ios/native/Photos/PHAssetResource.g.cs
+++ b/new/ios/native/Photos/PHAssetResource.g.cs
@@ -106,6 +106,48 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelHeight {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelHeight")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelHeight"));
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelHeight"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelWidth {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelWidth")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelWidth"));
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelWidth"));
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual PHAssetResourceType ResourceType {
[Export ("type", ArgumentSemantic.UnsafeUnretained)]
get {
diff --git a/new/ios/native/Photos/PHObjectType.g.cs b/new/ios/native/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..3e5fac1
--- /dev/null
+++ b/new/ios/native/Photos/PHObjectType.g.cs
@@ -0,0 +1,60 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/ios/native/Photos/PHPersistentChange.g.cs b/new/ios/native/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..358abad
--- /dev/null
+++ b/new/ios/native/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,113 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChange");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("changeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("changeToken")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/ios/native/Photos/PHPersistentChangeFetchResult.g.cs b/new/ios/native/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..3557f56
--- /dev/null
+++ b/new/ios/native/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,100 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ #endif
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/ios/native/Photos/PHPersistentChangeToken.g.cs b/new/ios/native/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..a54f74c
--- /dev/null
+++ b/new/ios/native/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,122 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/ios/native/Photos/PHPersistentObjectChangeDetails.g.cs b/new/ios/native/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..bbad0c4
--- /dev/null
+++ b/new/ios/native/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,146 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("objectType"));
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("objectType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/ios/native/Photos/PHPhotoLibrary.g.cs b/new/ios/native/Photos/PHPhotoLibrary.g.cs
index cdf5796..3177d89 100644
--- a/old/ios/native/Photos/PHPhotoLibrary.g.cs
+++ b/new/ios/native/Photos/PHPhotoLibrary.g.cs
@@ -68,6 +68,28 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
[Export ("authorizationStatusForAccessLevel:")]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 11,0, ObjCRuntime.PlatformArchitecture.All)]
@@ -281,6 +303,29 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("currentChangeToken")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("currentChangeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("currentChangeToken")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPhotoLibrary SharedPhotoLibrary {
[Export ("sharedPhotoLibrary")]
get {
diff --git a/old/ios/native/Photos/PHPhotosError.g.cs b/new/ios/native/Photos/PHPhotosError.g.cs
index 6043e4f..9816bae 100644
--- a/old/ios/native/Photos/PHPhotosError.g.cs
+++ b/new/ios/native/Photos/PHPhotosError.g.cs
@@ -61,6 +61,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -72,6 +73,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/ios/native/PhotosUI/PHEditingExtensionContext.g.cs b/new/ios/native/PhotosUI/PHEditingExtensionContext.g.cs
index 3612f0d..cf6dbcc 100644
--- a/old/ios/native/PhotosUI/PHEditingExtensionContext.g.cs
+++ b/new/ios/native/PhotosUI/PHEditingExtensionContext.g.cs
@@ -54,6 +54,7 @@ namespace PhotosUI {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 13,0)]
+ [Obsoleted (PlatformName.iOS, 14,0)]
public unsafe partial class PHEditingExtensionContext : NSExtensionContext {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("PHEditingExtensionContext");
diff --git a/old/ios/native/PhotosUI/PHLivePhotoViewDelegate.g.cs b/new/ios/native/PhotosUI/PHLivePhotoViewDelegate.g.cs
index 37e4261..8155608 100644
--- a/old/ios/native/PhotosUI/PHLivePhotoViewDelegate.g.cs
+++ b/new/ios/native/PhotosUI/PHLivePhotoViewDelegate.g.cs
@@ -55,6 +55,7 @@ namespace PhotosUI {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanBeginPlayback", Selector = "livePhotoView:canBeginPlaybackWithStyle:", ReturnType = typeof (bool), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillBeginPlayback", Selector = "livePhotoView:willBeginPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidEndPlayback", Selector = "livePhotoView:didEndPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
+ [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetExtraMinimumTouchDuration", Selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:", ReturnType = typeof (double), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (UITouch), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false, false })]
public partial interface IPHLivePhotoViewDelegate : INativeObject, IDisposable
{
}
@@ -88,6 +89,15 @@ namespace PhotosUI {
var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:didEndPlaybackWithStyle:"), livePhotoView__handle__, (IntPtr) (long) playbackStyle);
}
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
+ var touch__handle__ = touch!.GetNonNullHandle (nameof (touch));
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:"), livePhotoView__handle__, touch__handle__, (IntPtr) (long) playbackStyle);
+ }
}
internal sealed class PHLivePhotoViewDelegateWrapper : BaseWrapper, IPHLivePhotoViewDelegate {
[Preserve (Conditional = true)]
@@ -149,6 +159,13 @@ namespace PhotosUI {
{
throw new You_Should_Not_Call_base_In_This_Method ();
}
+ [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")]
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
[Export ("livePhotoView:willBeginPlaybackWithStyle:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void WillBeginPlayback (PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle)
diff --git a/old/ios/native/PhotosUI/PHPickerConfiguration.g.cs b/new/ios/native/PhotosUI/PHPickerConfiguration.g.cs
index 6439e12..995ecc3 100644
--- a/old/ios/native/PhotosUI/PHPickerConfiguration.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerConfiguration.g.cs
@@ -51,7 +51,7 @@ namespace PhotosUI {
[Register("PHPickerConfiguration", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Advice (@"This type should not be subclassed.")]
diff --git a/old/ios/native/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/ios/native/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
index 48741ca..d2926f7 100644
--- a/old/ios/native/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -50,8 +50,8 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum PHPickerConfigurationAssetRepresentationMode : long {
Automatic = 0,
diff --git a/old/ios/native/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/ios/native/PhotosUI/PHPickerConfigurationSelection.g.cs
index 200b80a..e16279f 100644
--- a/old/ios/native/PhotosUI/PHPickerConfigurationSelection.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
[Native]
diff --git a/old/ios/native/PhotosUI/PHPickerFilter.g.cs b/new/ios/native/PhotosUI/PHPickerFilter.g.cs
index 3ad5006..5cbf82d 100644
--- a/old/ios/native/PhotosUI/PHPickerFilter.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerFilter.g.cs
@@ -51,7 +51,7 @@ namespace PhotosUI {
[Register("PHPickerFilter", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Advice (@"This type should not be subclassed.")]
@@ -94,6 +94,24 @@ namespace PhotosUI {
global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
return ret!;
}
+ [Export ("allFilterMatchingSubfilters:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("allFilterMatchingSubfilters:"), nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ #endif
+ }
[Export ("anyFilterMatchingSubfilters:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters)
@@ -111,6 +129,79 @@ namespace PhotosUI {
return ret!;
#endif
}
+ [Export ("notFilterOfSubfilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("notFilterOfSubfilter:"), subfilter__handle__))!;
+ #endif
+ }
+ [Export ("playbackStyleFilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("playbackStyleFilter:"), (IntPtr) (long) playbackStyle))!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter BurstsFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("burstsFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("burstsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("cinematicVideosFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("cinematicVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("depthEffectPhotosFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("depthEffectPhotosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPickerFilter ImagesFilter {
[Export ("imagesFilter")]
@@ -140,6 +231,86 @@ namespace PhotosUI {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter PanoramasFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("panoramasFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("panoramasFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenRecordingsFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("screenRecordingsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenshotsFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("screenshotsFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("slomoVideosFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("slomoVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("timelapseVideosFilter")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("timelapseVideosFilter")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPickerFilter VideosFilter {
[Export ("videosFilter")]
get {
diff --git a/old/ios/native/PhotosUI/PHPickerResult.g.cs b/new/ios/native/PhotosUI/PHPickerResult.g.cs
index ba00b01..4f0d429 100644
--- a/old/ios/native/PhotosUI/PHPickerResult.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerResult.g.cs
@@ -51,7 +51,7 @@ namespace PhotosUI {
[Register("PHPickerResult", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Advice (@"This type should not be subclassed.")]
diff --git a/old/ios/native/PhotosUI/PHPickerViewController.g.cs b/new/ios/native/PhotosUI/PHPickerViewController.g.cs
index 8190ac8..ffe0c52 100644
--- a/old/ios/native/PhotosUI/PHPickerViewController.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerViewController.g.cs
@@ -51,7 +51,7 @@ namespace PhotosUI {
[Register("PHPickerViewController", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Advice (@"This type should not be subclassed.")]
@@ -113,6 +113,48 @@ namespace PhotosUI {
}
#endif
}
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("deselectAssetsWithIdentifiers:"), nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ #endif
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UIKit.UIApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:"), nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual PHPickerConfiguration Configuration {
[Export ("configuration", ArgumentSemantic.Copy)]
diff --git a/old/ios/native/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/ios/native/PhotosUI/PHPickerViewControllerDelegate.g.cs
index 4bf4c5e..df80ed7 100644
--- a/old/ios/native/PhotosUI/PHPickerViewControllerDelegate.g.cs
+++ b/new/ios/native/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -50,7 +50,7 @@ using NativeHandle = System.IntPtr;
namespace PhotosUI {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
@@ -92,7 +92,7 @@ namespace PhotosUI {
[Model]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
diff --git a/old/ios/native/SupportDelegates.g.cs b/new/ios/native/SupportDelegates.g.cs
index 968d466..df5a7e0 100644
--- a/old/ios/native/SupportDelegates.g.cs
+++ b/new/ios/native/SupportDelegates.g.cs
@@ -479,6 +479,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (UIImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock2 (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLook {
diff --git a/old/mac/full/ObjCRuntime/Trampolines.g.cs b/new/mac/full/ObjCRuntime/Trampolines.g.cs
index 8741c4b..79e95c4 100644
--- a/old/mac/full/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/full/ObjCRuntime/Trampolines.g.cs
@@ -11910,6 +11910,45 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/mac/full/Photos/PHAsset.g.cs b/new/mac/full/Photos/PHAsset.g.cs
index 51396fa..62f7ac8 100644
--- a/old/mac/full/Photos/PHAsset.g.cs
+++ b/new/mac/full/Photos/PHAsset.g.cs
@@ -85,6 +85,9 @@ namespace Photos {
const string selFetchKeyAssetsInAssetCollection_Options_ = "fetchKeyAssetsInAssetCollection:options:";
static readonly IntPtr selFetchKeyAssetsInAssetCollection_Options_Handle = Selector.GetHandle ("fetchKeyAssetsInAssetCollection:options:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selHasAdjustments = "hasAdjustments";
+ static readonly IntPtr selHasAdjustmentsHandle = Selector.GetHandle ("hasAdjustments");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selIsFavorite = "isFavorite";
static readonly IntPtr selIsFavoriteHandle = Selector.GetHandle ("isFavorite");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -288,6 +291,23 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual bool HasAdjustments {
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("hasAdjustments")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selHasAdjustmentsHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selHasAdjustmentsHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Hidden {
[Export ("isHidden")]
get {
diff --git a/old/mac/full/Photos/PHAssetCollection.g.cs b/new/mac/full/Photos/PHAssetCollection.g.cs
index 7811791..0060aae 100644
--- a/old/mac/full/Photos/PHAssetCollection.g.cs
+++ b/new/mac/full/Photos/PHAssetCollection.g.cs
@@ -143,6 +143,9 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (class_ptr, selFetchAssetCollectionsContainingAsset_WithType_Options_Handle, asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ [Deprecated (PlatformName.iOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.TvOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.MacOSX, 13,0, message: "Will be removed in a future release.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHFetchResult FetchAssetCollections (NSUrl[] assetGroupUrls, PHFetchOptions? options)
{
diff --git a/old/mac/full/Photos/PHAssetCollectionSubtype.g.cs b/new/mac/full/Photos/PHAssetCollectionSubtype.g.cs
index d10de79..98559be 100644
--- a/old/mac/full/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/mac/full/Photos/PHAssetCollectionSubtype.g.cs
@@ -94,6 +94,11 @@ namespace Photos {
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
SmartAlbumRAW = 217,
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/mac/full/Photos/PHAssetMediaSubtype.g.cs b/new/mac/full/Photos/PHAssetMediaSubtype.g.cs
index 729291e..a876805 100644
--- a/old/mac/full/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/mac/full/Photos/PHAssetMediaSubtype.g.cs
@@ -63,5 +63,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/mac/full/Photos/PHAssetResource.g.cs b/new/mac/full/Photos/PHAssetResource.g.cs
index dc28f9c..9d57a94 100644
--- a/old/mac/full/Photos/PHAssetResource.g.cs
+++ b/new/mac/full/Photos/PHAssetResource.g.cs
@@ -61,6 +61,12 @@ namespace Photos {
const string selOriginalFilename = "originalFilename";
static readonly IntPtr selOriginalFilenameHandle = Selector.GetHandle ("originalFilename");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelHeight = "pixelHeight";
+ static readonly IntPtr selPixelHeightHandle = Selector.GetHandle ("pixelHeight");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelWidth = "pixelWidth";
+ static readonly IntPtr selPixelWidthHandle = Selector.GetHandle ("pixelWidth");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selType = "type";
static readonly IntPtr selTypeHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -119,6 +125,40 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelHeight {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelHeight")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelHeightHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelHeightHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelWidth {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelWidth")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelWidthHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelWidthHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual PHAssetResourceType ResourceType {
[Export ("type", ArgumentSemantic.UnsafeUnretained)]
get {
diff --git a/new/mac/full/Photos/PHObjectType.g.cs b/new/mac/full/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..6428082
--- /dev/null
+++ b/new/mac/full/Photos/PHObjectType.g.cs
@@ -0,0 +1,55 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/mac/full/Photos/PHPersistentChange.g.cs b/new/mac/full/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..3ebf6cd
--- /dev/null
+++ b/new/mac/full/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,100 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeDetailsForObjectType_Error_ = "changeDetailsForObjectType:error:";
+ static readonly IntPtr selChangeDetailsForObjectType_Error_Handle = Selector.GetHandle ("changeDetailsForObjectType:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeToken = "changeToken";
+ static readonly IntPtr selChangeTokenHandle = Selector.GetHandle ("changeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/mac/full/Photos/PHPersistentChangeFetchResult.g.cs b/new/mac/full/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..7ee8320
--- /dev/null
+++ b/new/mac/full/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,88 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEnumerateChangesWithBlock_ = "enumerateChangesWithBlock:";
+ static readonly IntPtr selEnumerateChangesWithBlock_Handle = Selector.GetHandle ("enumerateChangesWithBlock:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/mac/full/Photos/PHPersistentChangeToken.g.cs b/new/mac/full/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..7300560
--- /dev/null
+++ b/new/mac/full/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_ = "encodeWithCoder:";
+ static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_ = "initWithCoder:";
+ static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_Handle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_Handle, encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/mac/full/Photos/PHPersistentObjectChangeDetails.g.cs b/new/mac/full/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..49a40ba
--- /dev/null
+++ b/new/mac/full/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,131 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeletedLocalIdentifiers = "deletedLocalIdentifiers";
+ static readonly IntPtr selDeletedLocalIdentifiersHandle = Selector.GetHandle ("deletedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInsertedLocalIdentifiers = "insertedLocalIdentifiers";
+ static readonly IntPtr selInsertedLocalIdentifiersHandle = Selector.GetHandle ("insertedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selObjectType = "objectType";
+ static readonly IntPtr selObjectTypeHandle = Selector.GetHandle ("objectType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selUpdatedLocalIdentifiers = "updatedLocalIdentifiers";
+ static readonly IntPtr selUpdatedLocalIdentifiersHandle = Selector.GetHandle ("updatedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeletedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeletedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selInsertedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selInsertedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selObjectTypeHandle);
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selObjectTypeHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selUpdatedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selUpdatedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/mac/full/Photos/PHPhotoLibrary.g.cs b/new/mac/full/Photos/PHPhotoLibrary.g.cs
index fd84f69..ccaf0a8 100644
--- a/old/mac/full/Photos/PHPhotoLibrary.g.cs
+++ b/new/mac/full/Photos/PHPhotoLibrary.g.cs
@@ -55,6 +55,12 @@ namespace Photos {
const string selAuthorizationStatusForAccessLevel_ = "authorizationStatusForAccessLevel:";
static readonly IntPtr selAuthorizationStatusForAccessLevel_Handle = Selector.GetHandle ("authorizationStatusForAccessLevel:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCurrentChangeToken = "currentChangeToken";
+ static readonly IntPtr selCurrentChangeTokenHandle = Selector.GetHandle ("currentChangeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFetchPersistentChangesSinceToken_Error_ = "fetchPersistentChangesSinceToken:error:";
+ static readonly IntPtr selFetchPersistentChangesSinceToken_Error_Handle = Selector.GetHandle ("fetchPersistentChangesSinceToken:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPerformChanges_CompletionHandler_ = "performChanges:completionHandler:";
static readonly IntPtr selPerformChanges_CompletionHandler_Handle = Selector.GetHandle ("performChanges:completionHandler:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -99,6 +105,24 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 11,0, ObjCRuntime.PlatformArchitecture.All)]
@@ -296,6 +320,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("currentChangeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCurrentChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCurrentChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPhotoLibrary SharedPhotoLibrary {
[Export ("sharedPhotoLibrary")]
get {
diff --git a/old/mac/full/Photos/PHPhotosError.g.cs b/new/mac/full/Photos/PHPhotosError.g.cs
index 4eff60a..64275cb 100644
--- a/old/mac/full/Photos/PHPhotosError.g.cs
+++ b/new/mac/full/Photos/PHPhotosError.g.cs
@@ -56,6 +56,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -67,6 +68,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/mac/full/PhotosUI/PHPickerConfiguration.g.cs b/new/mac/full/PhotosUI/PHPickerConfiguration.g.cs
new file mode 100644
index 0000000..05cb14e
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerConfiguration.g.cs
@@ -0,0 +1,277 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerConfiguration", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFilter = "filter";
+ static readonly IntPtr selFilterHandle = Selector.GetHandle ("filter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPhotoLibrary_ = "initWithPhotoLibrary:";
+ static readonly IntPtr selInitWithPhotoLibrary_Handle = Selector.GetHandle ("initWithPhotoLibrary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreferredAssetRepresentationMode = "preferredAssetRepresentationMode";
+ static readonly IntPtr selPreferredAssetRepresentationModeHandle = Selector.GetHandle ("preferredAssetRepresentationMode");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreselectedAssetIdentifiers = "preselectedAssetIdentifiers";
+ static readonly IntPtr selPreselectedAssetIdentifiersHandle = Selector.GetHandle ("preselectedAssetIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelection = "selection";
+ static readonly IntPtr selSelectionHandle = Selector.GetHandle ("selection");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelectionLimit = "selectionLimit";
+ static readonly IntPtr selSelectionLimitHandle = Selector.GetHandle ("selectionLimit");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFilter_ = "setFilter:";
+ static readonly IntPtr selSetFilter_Handle = Selector.GetHandle ("setFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreferredAssetRepresentationMode_ = "setPreferredAssetRepresentationMode:";
+ static readonly IntPtr selSetPreferredAssetRepresentationMode_Handle = Selector.GetHandle ("setPreferredAssetRepresentationMode:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreselectedAssetIdentifiers_ = "setPreselectedAssetIdentifiers:";
+ static readonly IntPtr selSetPreselectedAssetIdentifiers_Handle = Selector.GetHandle ("setPreselectedAssetIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelection_ = "setSelection:";
+ static readonly IntPtr selSetSelection_Handle = Selector.GetHandle ("setSelection:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelectionLimit_ = "setSelectionLimit:";
+ static readonly IntPtr selSetSelectionLimit_Handle = Selector.GetHandle ("setSelectionLimit:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerConfiguration");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public PHPickerConfiguration () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerConfiguration (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithPhotoLibrary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerConfiguration (global::Photos.PHPhotoLibrary photoLibrary)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var photoLibrary__handle__ = photoLibrary!.GetNonNullHandle (nameof (photoLibrary));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerFilter? Filter {
+ [Export ("filter", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selFilterHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selFilterHandle))!;
+ }
+ return ret!;
+ }
+ [Export ("setFilter:", ArgumentSemantic.Copy)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetFilter_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetFilter_Handle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode {
+ [Export ("preferredAssetRepresentationMode", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationAssetRepresentationMode ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPreferredAssetRepresentationModeHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPreferredAssetRepresentationModeHandle);
+ }
+ return ret!;
+ }
+ [Export ("setPreferredAssetRepresentationMode:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string[] PreselectedAssetIdentifiers {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPreselectedAssetIdentifiersHandle))!;
+ } else {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPreselectedAssetIdentifiersHandle))!;
+ }
+ }
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setPreselectedAssetIdentifiers:", ArgumentSemantic.Copy)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsa_value = NSArray.FromStrings (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ }
+ nsa_value.Dispose ();
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPickerConfigurationSelection Selection {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("selection", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationSelection ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionHandle);
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSelection:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelection_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelection_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual nint SelectionLimit {
+ [Export ("selectionLimit")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionLimitHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionLimitHandle);
+ }
+ }
+ [Export ("setSelectionLimit:")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelectionLimit_Handle, (IntPtr) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelectionLimit_Handle, (IntPtr) value);
+ }
+ }
+ }
+ } /* class PHPickerConfiguration */
+}
diff --git a/new/mac/full/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/mac/full/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
new file mode 100644
index 0000000..d40dac2
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHPickerConfigurationAssetRepresentationMode : long {
+ Automatic = 0,
+ Current = 1,
+ Compatible = 2,
+ }
+}
diff --git a/new/mac/full/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/mac/full/PhotosUI/PHPickerConfigurationSelection.g.cs
new file mode 100644
index 0000000..0fb8ec0
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHPickerConfigurationSelection : long {
+ Default = 0,
+ Ordered = 1,
+ }
+}
diff --git a/new/mac/full/PhotosUI/PHPickerFilter.g.cs b/new/mac/full/PhotosUI/PHPickerFilter.g.cs
new file mode 100644
index 0000000..19458c0
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerFilter.g.cs
@@ -0,0 +1,305 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerFilter", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerFilter : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAllFilterMatchingSubfilters_ = "allFilterMatchingSubfilters:";
+ static readonly IntPtr selAllFilterMatchingSubfilters_Handle = Selector.GetHandle ("allFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAnyFilterMatchingSubfilters_ = "anyFilterMatchingSubfilters:";
+ static readonly IntPtr selAnyFilterMatchingSubfilters_Handle = Selector.GetHandle ("anyFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBurstsFilter = "burstsFilter";
+ static readonly IntPtr selBurstsFilterHandle = Selector.GetHandle ("burstsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCinematicVideosFilter = "cinematicVideosFilter";
+ static readonly IntPtr selCinematicVideosFilterHandle = Selector.GetHandle ("cinematicVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDepthEffectPhotosFilter = "depthEffectPhotosFilter";
+ static readonly IntPtr selDepthEffectPhotosFilterHandle = Selector.GetHandle ("depthEffectPhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selImagesFilter = "imagesFilter";
+ static readonly IntPtr selImagesFilterHandle = Selector.GetHandle ("imagesFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLivePhotosFilter = "livePhotosFilter";
+ static readonly IntPtr selLivePhotosFilterHandle = Selector.GetHandle ("livePhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNotFilterOfSubfilter_ = "notFilterOfSubfilter:";
+ static readonly IntPtr selNotFilterOfSubfilter_Handle = Selector.GetHandle ("notFilterOfSubfilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPanoramasFilter = "panoramasFilter";
+ static readonly IntPtr selPanoramasFilterHandle = Selector.GetHandle ("panoramasFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPlaybackStyleFilter_ = "playbackStyleFilter:";
+ static readonly IntPtr selPlaybackStyleFilter_Handle = Selector.GetHandle ("playbackStyleFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenRecordingsFilter = "screenRecordingsFilter";
+ static readonly IntPtr selScreenRecordingsFilterHandle = Selector.GetHandle ("screenRecordingsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenshotsFilter = "screenshotsFilter";
+ static readonly IntPtr selScreenshotsFilterHandle = Selector.GetHandle ("screenshotsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSlomoVideosFilter = "slomoVideosFilter";
+ static readonly IntPtr selSlomoVideosFilterHandle = Selector.GetHandle ("slomoVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTimelapseVideosFilter = "timelapseVideosFilter";
+ static readonly IntPtr selTimelapseVideosFilterHandle = Selector.GetHandle ("timelapseVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVideosFilter = "videosFilter";
+ static readonly IntPtr selVideosFilterHandle = Selector.GetHandle ("videosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerFilter");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerFilter (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerFilter (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("allFilterMatchingSubfilters:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selAllFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("anyFilterMatchingSubfilters:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selAnyFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("notFilterOfSubfilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selNotFilterOfSubfilter_Handle, subfilter__handle__))!;
+ }
+ [Export ("playbackStyleFilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selPlaybackStyleFilter_Handle, (IntPtr) (long) playbackStyle))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter BurstsFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("burstsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBurstsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("cinematicVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selCinematicVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("depthEffectPhotosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDepthEffectPhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter ImagesFilter {
+ [Export ("imagesFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selImagesFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter LivePhotosFilter {
+ [Export ("livePhotosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selLivePhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter PanoramasFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("panoramasFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selPanoramasFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenRecordingsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selScreenRecordingsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenshotsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selScreenshotsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("slomoVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selSlomoVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("timelapseVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selTimelapseVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter VideosFilter {
+ [Export ("videosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ } /* class PHPickerFilter */
+}
diff --git a/new/mac/full/PhotosUI/PHPickerResult.g.cs b/new/mac/full/PhotosUI/PHPickerResult.g.cs
new file mode 100644
index 0000000..4209c57
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerResult.g.cs
@@ -0,0 +1,102 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerResult", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAssetIdentifier = "assetIdentifier";
+ static readonly IntPtr selAssetIdentifierHandle = Selector.GetHandle ("assetIdentifier");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selItemProvider = "itemProvider";
+ static readonly IntPtr selItemProviderHandle = Selector.GetHandle ("itemProvider");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerResult");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string? AssetIdentifier {
+ [Export ("assetIdentifier")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selAssetIdentifierHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selAssetIdentifierHandle))!;
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSItemProvider ItemProvider {
+ [Export ("itemProvider")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSItemProvider? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selItemProviderHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selItemProviderHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPickerResult */
+}
diff --git a/new/mac/full/PhotosUI/PHPickerViewController.g.cs b/new/mac/full/PhotosUI/PHPickerViewController.g.cs
new file mode 100644
index 0000000..2a5cf92
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerViewController.g.cs
@@ -0,0 +1,214 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerViewController", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerViewController : global::AppKit.NSViewController {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selConfiguration = "configuration";
+ static readonly IntPtr selConfigurationHandle = Selector.GetHandle ("configuration");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDelegate = "delegate";
+ static readonly IntPtr selDelegateHandle = Selector.GetHandle ("delegate");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeselectAssetsWithIdentifiers_ = "deselectAssetsWithIdentifiers:";
+ static readonly IntPtr selDeselectAssetsWithIdentifiers_Handle = Selector.GetHandle ("deselectAssetsWithIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithConfiguration_ = "initWithConfiguration:";
+ static readonly IntPtr selInitWithConfiguration_Handle = Selector.GetHandle ("initWithConfiguration:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selMoveAssetWithIdentifier_AfterAssetWithIdentifier_ = "moveAssetWithIdentifier:afterAssetWithIdentifier:";
+ static readonly IntPtr selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle = Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetDelegate_ = "setDelegate:";
+ static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle ("setDelegate:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerViewController");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPickerViewController (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewController (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewController (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithConfiguration:")]
+ [DesignatedInitializer]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerViewController (PHPickerConfiguration configuration)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ }
+ }
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerConfiguration Configuration {
+ [Export ("configuration", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selConfigurationHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selConfigurationHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public IPHPickerViewControllerDelegate Delegate {
+ get {
+ return (WeakDelegate as IPHPickerViewControllerDelegate)!;
+ }
+ set {
+ var rvalue = value as NSObject;
+ if (!(value is null) && rvalue is null)
+ throw new ArgumentException ("The object passed of type " + value.GetType () + " does not derive from NSObject");
+ WeakDelegate = rvalue;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ object? __mt_WeakDelegate_var;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject? WeakDelegate {
+ [Export ("delegate", ArgumentSemantic.Weak)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDelegateHandle))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDelegateHandle))!;
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = ret;
+ return ret!;
+ }
+ [Export ("setDelegate:", ArgumentSemantic.Weak)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDelegate_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDelegate_Handle, value__handle__);
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = value;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ protected override void Dispose (bool disposing)
+ {
+ base.Dispose (disposing);
+ if (Handle == IntPtr.Zero) {
+ __mt_WeakDelegate_var = null;
+ }
+ }
+ } /* class PHPickerViewController */
+}
diff --git a/new/mac/full/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/mac/full/PhotosUI/PHPickerViewControllerDelegate.g.cs
new file mode 100644
index 0000000..af07299
--- /dev/null
+++ b/new/mac/full/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -0,0 +1,118 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
+ [ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidFinishPicking", Selector = "picker:didFinishPicking:", ParameterType = new Type [] { typeof (PhotosUI.PHPickerViewController), typeof (PhotosUI.PHPickerResult[]) }, ParameterByRef = new bool [] { false, false })]
+ public partial interface IPHPickerViewControllerDelegate : INativeObject, IDisposable
+ {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Export ("picker:didFinishPicking:")]
+ [Preserve (Conditional = true)]
+ void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
+ }
+ internal sealed class PHPickerViewControllerDelegateWrapper : BaseWrapper, IPHPickerViewControllerDelegate {
+ [Preserve (Conditional = true)]
+ public PHPickerViewControllerDelegateWrapper (IntPtr handle, bool owns)
+ : base (handle, owns)
+ {
+ }
+ [Export ("picker:didFinishPicking:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var picker__handle__ = picker!.GetNonNullHandle (nameof (picker));
+ if (results is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (results));
+ var nsa_results = NSArray.FromNSObjects (results);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("picker:didFinishPicking:"), picker__handle__, nsa_results.Handle);
+ nsa_results.Dispose ();
+ }
+ }
+}
+namespace PhotosUI {
+ [Protocol()]
+ [Register("Xamarin_Mac__PhotosUI_PHPickerViewControllerDelegate", false)]
+ [Model]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ protected PHPickerViewControllerDelegate () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ IsDirectBinding = false;
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewControllerDelegate (NSObjectFlag t) : base (t)
+ {
+ IsDirectBinding = false;
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewControllerDelegate (IntPtr handle) : base (handle)
+ {
+ IsDirectBinding = false;
+ }
+
+ [Export ("picker:didFinishPicking:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public abstract void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
+ } /* class PHPickerViewControllerDelegate */
+}
diff --git a/old/mac/full/SupportDelegates.g.cs b/new/mac/full/SupportDelegates.g.cs
index c0ca25a..361e15e 100644
--- a/old/mac/full/SupportDelegates.g.cs
+++ b/new/mac/full/SupportDelegates.g.cs
@@ -590,6 +590,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (NSImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock2 (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLookUI {
diff --git a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
index 8741c4b..79e95c4 100644
--- a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
@@ -11910,6 +11910,45 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/mac/mobile/Photos/PHAsset.g.cs b/new/mac/mobile/Photos/PHAsset.g.cs
index 51396fa..62f7ac8 100644
--- a/old/mac/mobile/Photos/PHAsset.g.cs
+++ b/new/mac/mobile/Photos/PHAsset.g.cs
@@ -85,6 +85,9 @@ namespace Photos {
const string selFetchKeyAssetsInAssetCollection_Options_ = "fetchKeyAssetsInAssetCollection:options:";
static readonly IntPtr selFetchKeyAssetsInAssetCollection_Options_Handle = Selector.GetHandle ("fetchKeyAssetsInAssetCollection:options:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selHasAdjustments = "hasAdjustments";
+ static readonly IntPtr selHasAdjustmentsHandle = Selector.GetHandle ("hasAdjustments");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selIsFavorite = "isFavorite";
static readonly IntPtr selIsFavoriteHandle = Selector.GetHandle ("isFavorite");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -288,6 +291,23 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual bool HasAdjustments {
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("hasAdjustments")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selHasAdjustmentsHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selHasAdjustmentsHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Hidden {
[Export ("isHidden")]
get {
diff --git a/old/mac/mobile/Photos/PHAssetCollection.g.cs b/new/mac/mobile/Photos/PHAssetCollection.g.cs
index 7811791..0060aae 100644
--- a/old/mac/mobile/Photos/PHAssetCollection.g.cs
+++ b/new/mac/mobile/Photos/PHAssetCollection.g.cs
@@ -143,6 +143,9 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (class_ptr, selFetchAssetCollectionsContainingAsset_WithType_Options_Handle, asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ [Deprecated (PlatformName.iOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.TvOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.MacOSX, 13,0, message: "Will be removed in a future release.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHFetchResult FetchAssetCollections (NSUrl[] assetGroupUrls, PHFetchOptions? options)
{
diff --git a/old/mac/mobile/Photos/PHAssetCollectionSubtype.g.cs b/new/mac/mobile/Photos/PHAssetCollectionSubtype.g.cs
index d10de79..98559be 100644
--- a/old/mac/mobile/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/mac/mobile/Photos/PHAssetCollectionSubtype.g.cs
@@ -94,6 +94,11 @@ namespace Photos {
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
SmartAlbumRAW = 217,
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/mac/mobile/Photos/PHAssetMediaSubtype.g.cs b/new/mac/mobile/Photos/PHAssetMediaSubtype.g.cs
index 729291e..a876805 100644
--- a/old/mac/mobile/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/mac/mobile/Photos/PHAssetMediaSubtype.g.cs
@@ -63,5 +63,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/mac/mobile/Photos/PHAssetResource.g.cs b/new/mac/mobile/Photos/PHAssetResource.g.cs
index dc28f9c..9d57a94 100644
--- a/old/mac/mobile/Photos/PHAssetResource.g.cs
+++ b/new/mac/mobile/Photos/PHAssetResource.g.cs
@@ -61,6 +61,12 @@ namespace Photos {
const string selOriginalFilename = "originalFilename";
static readonly IntPtr selOriginalFilenameHandle = Selector.GetHandle ("originalFilename");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelHeight = "pixelHeight";
+ static readonly IntPtr selPixelHeightHandle = Selector.GetHandle ("pixelHeight");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPixelWidth = "pixelWidth";
+ static readonly IntPtr selPixelWidthHandle = Selector.GetHandle ("pixelWidth");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selType = "type";
static readonly IntPtr selTypeHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -119,6 +125,40 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelHeight {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelHeight")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelHeightHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelHeightHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelWidth {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelWidth")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelWidthHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelWidthHandle);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual PHAssetResourceType ResourceType {
[Export ("type", ArgumentSemantic.UnsafeUnretained)]
get {
diff --git a/new/mac/mobile/Photos/PHObjectType.g.cs b/new/mac/mobile/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..6428082
--- /dev/null
+++ b/new/mac/mobile/Photos/PHObjectType.g.cs
@@ -0,0 +1,55 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/mac/mobile/Photos/PHPersistentChange.g.cs b/new/mac/mobile/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..3ebf6cd
--- /dev/null
+++ b/new/mac/mobile/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,100 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeDetailsForObjectType_Error_ = "changeDetailsForObjectType:error:";
+ static readonly IntPtr selChangeDetailsForObjectType_Error_Handle = Selector.GetHandle ("changeDetailsForObjectType:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selChangeToken = "changeToken";
+ static readonly IntPtr selChangeTokenHandle = Selector.GetHandle ("changeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, selChangeDetailsForObjectType_Error_Handle, (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/mac/mobile/Photos/PHPersistentChangeFetchResult.g.cs b/new/mac/mobile/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..7ee8320
--- /dev/null
+++ b/new/mac/mobile/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,88 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEnumerateChangesWithBlock_ = "enumerateChangesWithBlock:";
+ static readonly IntPtr selEnumerateChangesWithBlock_Handle = Selector.GetHandle ("enumerateChangesWithBlock:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEnumerateChangesWithBlock_Handle, (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/mac/mobile/Photos/PHPersistentChangeToken.g.cs b/new/mac/mobile/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..7300560
--- /dev/null
+++ b/new/mac/mobile/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_ = "encodeWithCoder:";
+ static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_ = "initWithCoder:";
+ static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_Handle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_Handle, encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/mac/mobile/Photos/PHPersistentObjectChangeDetails.g.cs b/new/mac/mobile/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..49a40ba
--- /dev/null
+++ b/new/mac/mobile/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,131 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeletedLocalIdentifiers = "deletedLocalIdentifiers";
+ static readonly IntPtr selDeletedLocalIdentifiersHandle = Selector.GetHandle ("deletedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInsertedLocalIdentifiers = "insertedLocalIdentifiers";
+ static readonly IntPtr selInsertedLocalIdentifiersHandle = Selector.GetHandle ("insertedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selObjectType = "objectType";
+ static readonly IntPtr selObjectTypeHandle = Selector.GetHandle ("objectType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selUpdatedLocalIdentifiers = "updatedLocalIdentifiers";
+ static readonly IntPtr selUpdatedLocalIdentifiersHandle = Selector.GetHandle ("updatedLocalIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeletedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeletedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selInsertedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selInsertedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selObjectTypeHandle);
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selObjectTypeHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selUpdatedLocalIdentifiersHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selUpdatedLocalIdentifiersHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/mac/mobile/Photos/PHPhotoLibrary.g.cs b/new/mac/mobile/Photos/PHPhotoLibrary.g.cs
index fd84f69..ccaf0a8 100644
--- a/old/mac/mobile/Photos/PHPhotoLibrary.g.cs
+++ b/new/mac/mobile/Photos/PHPhotoLibrary.g.cs
@@ -55,6 +55,12 @@ namespace Photos {
const string selAuthorizationStatusForAccessLevel_ = "authorizationStatusForAccessLevel:";
static readonly IntPtr selAuthorizationStatusForAccessLevel_Handle = Selector.GetHandle ("authorizationStatusForAccessLevel:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCurrentChangeToken = "currentChangeToken";
+ static readonly IntPtr selCurrentChangeTokenHandle = Selector.GetHandle ("currentChangeToken");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFetchPersistentChangesSinceToken_Error_ = "fetchPersistentChangesSinceToken:error:";
+ static readonly IntPtr selFetchPersistentChangesSinceToken_Error_Handle = Selector.GetHandle ("fetchPersistentChangesSinceToken:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPerformChanges_CompletionHandler_ = "performChanges:completionHandler:";
static readonly IntPtr selPerformChanges_CompletionHandler_Handle = Selector.GetHandle ("performChanges:completionHandler:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -99,6 +105,24 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, selFetchPersistentChangesSinceToken_Error_Handle, since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 11,0, ObjCRuntime.PlatformArchitecture.All)]
@@ -296,6 +320,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("currentChangeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCurrentChangeTokenHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCurrentChangeTokenHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPhotoLibrary SharedPhotoLibrary {
[Export ("sharedPhotoLibrary")]
get {
diff --git a/old/mac/mobile/Photos/PHPhotosError.g.cs b/new/mac/mobile/Photos/PHPhotosError.g.cs
index 4eff60a..64275cb 100644
--- a/old/mac/mobile/Photos/PHPhotosError.g.cs
+++ b/new/mac/mobile/Photos/PHPhotosError.g.cs
@@ -56,6 +56,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -67,6 +68,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/mac/mobile/PhotosUI/PHPickerConfiguration.g.cs b/new/mac/mobile/PhotosUI/PHPickerConfiguration.g.cs
new file mode 100644
index 0000000..05cb14e
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerConfiguration.g.cs
@@ -0,0 +1,277 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerConfiguration", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFilter = "filter";
+ static readonly IntPtr selFilterHandle = Selector.GetHandle ("filter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPhotoLibrary_ = "initWithPhotoLibrary:";
+ static readonly IntPtr selInitWithPhotoLibrary_Handle = Selector.GetHandle ("initWithPhotoLibrary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreferredAssetRepresentationMode = "preferredAssetRepresentationMode";
+ static readonly IntPtr selPreferredAssetRepresentationModeHandle = Selector.GetHandle ("preferredAssetRepresentationMode");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPreselectedAssetIdentifiers = "preselectedAssetIdentifiers";
+ static readonly IntPtr selPreselectedAssetIdentifiersHandle = Selector.GetHandle ("preselectedAssetIdentifiers");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelection = "selection";
+ static readonly IntPtr selSelectionHandle = Selector.GetHandle ("selection");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSelectionLimit = "selectionLimit";
+ static readonly IntPtr selSelectionLimitHandle = Selector.GetHandle ("selectionLimit");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFilter_ = "setFilter:";
+ static readonly IntPtr selSetFilter_Handle = Selector.GetHandle ("setFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreferredAssetRepresentationMode_ = "setPreferredAssetRepresentationMode:";
+ static readonly IntPtr selSetPreferredAssetRepresentationMode_Handle = Selector.GetHandle ("setPreferredAssetRepresentationMode:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetPreselectedAssetIdentifiers_ = "setPreselectedAssetIdentifiers:";
+ static readonly IntPtr selSetPreselectedAssetIdentifiers_Handle = Selector.GetHandle ("setPreselectedAssetIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelection_ = "setSelection:";
+ static readonly IntPtr selSetSelection_Handle = Selector.GetHandle ("setSelection:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSelectionLimit_ = "setSelectionLimit:";
+ static readonly IntPtr selSetSelectionLimit_Handle = Selector.GetHandle ("setSelectionLimit:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerConfiguration");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public PHPickerConfiguration () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerConfiguration (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithPhotoLibrary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerConfiguration (global::Photos.PHPhotoLibrary photoLibrary)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var photoLibrary__handle__ = photoLibrary!.GetNonNullHandle (nameof (photoLibrary));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithPhotoLibrary_Handle, photoLibrary__handle__), "initWithPhotoLibrary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerFilter? Filter {
+ [Export ("filter", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selFilterHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selFilterHandle))!;
+ }
+ return ret!;
+ }
+ [Export ("setFilter:", ArgumentSemantic.Copy)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetFilter_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetFilter_Handle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode {
+ [Export ("preferredAssetRepresentationMode", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationAssetRepresentationMode ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPreferredAssetRepresentationModeHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationAssetRepresentationMode) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPreferredAssetRepresentationModeHandle);
+ }
+ return ret!;
+ }
+ [Export ("setPreferredAssetRepresentationMode:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetPreferredAssetRepresentationMode_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string[] PreselectedAssetIdentifiers {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPreselectedAssetIdentifiersHandle))!;
+ } else {
+ return CFArray.StringArrayFromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPreselectedAssetIdentifiersHandle))!;
+ }
+ }
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setPreselectedAssetIdentifiers:", ArgumentSemantic.Copy)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsa_value = NSArray.FromStrings (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetPreselectedAssetIdentifiers_Handle, nsa_value.Handle);
+ }
+ nsa_value.Dispose ();
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPickerConfigurationSelection Selection {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("selection", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfigurationSelection ret;
+ if (IsDirectBinding) {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionHandle);
+ } else {
+ ret = (PhotosUI.PHPickerConfigurationSelection) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionHandle);
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSelection:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelection_Handle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelection_Handle, (IntPtr) (long) value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual nint SelectionLimit {
+ [Export ("selectionLimit")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSelectionLimitHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSelectionLimitHandle);
+ }
+ }
+ [Export ("setSelectionLimit:")]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSelectionLimit_Handle, (IntPtr) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSelectionLimit_Handle, (IntPtr) value);
+ }
+ }
+ }
+ } /* class PHPickerConfiguration */
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs b/new/mac/mobile/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
new file mode 100644
index 0000000..d40dac2
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerConfigurationAssetRepresentationMode.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHPickerConfigurationAssetRepresentationMode : long {
+ Automatic = 0,
+ Current = 1,
+ Compatible = 2,
+ }
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerConfigurationSelection.g.cs b/new/mac/mobile/PhotosUI/PHPickerConfigurationSelection.g.cs
new file mode 100644
index 0000000..0fb8ec0
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerConfigurationSelection.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHPickerConfigurationSelection : long {
+ Default = 0,
+ Ordered = 1,
+ }
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerFilter.g.cs b/new/mac/mobile/PhotosUI/PHPickerFilter.g.cs
new file mode 100644
index 0000000..19458c0
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerFilter.g.cs
@@ -0,0 +1,305 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerFilter", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerFilter : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAllFilterMatchingSubfilters_ = "allFilterMatchingSubfilters:";
+ static readonly IntPtr selAllFilterMatchingSubfilters_Handle = Selector.GetHandle ("allFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAnyFilterMatchingSubfilters_ = "anyFilterMatchingSubfilters:";
+ static readonly IntPtr selAnyFilterMatchingSubfilters_Handle = Selector.GetHandle ("anyFilterMatchingSubfilters:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBurstsFilter = "burstsFilter";
+ static readonly IntPtr selBurstsFilterHandle = Selector.GetHandle ("burstsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCinematicVideosFilter = "cinematicVideosFilter";
+ static readonly IntPtr selCinematicVideosFilterHandle = Selector.GetHandle ("cinematicVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_ = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDepthEffectPhotosFilter = "depthEffectPhotosFilter";
+ static readonly IntPtr selDepthEffectPhotosFilterHandle = Selector.GetHandle ("depthEffectPhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selImagesFilter = "imagesFilter";
+ static readonly IntPtr selImagesFilterHandle = Selector.GetHandle ("imagesFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLivePhotosFilter = "livePhotosFilter";
+ static readonly IntPtr selLivePhotosFilterHandle = Selector.GetHandle ("livePhotosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNotFilterOfSubfilter_ = "notFilterOfSubfilter:";
+ static readonly IntPtr selNotFilterOfSubfilter_Handle = Selector.GetHandle ("notFilterOfSubfilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPanoramasFilter = "panoramasFilter";
+ static readonly IntPtr selPanoramasFilterHandle = Selector.GetHandle ("panoramasFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPlaybackStyleFilter_ = "playbackStyleFilter:";
+ static readonly IntPtr selPlaybackStyleFilter_Handle = Selector.GetHandle ("playbackStyleFilter:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenRecordingsFilter = "screenRecordingsFilter";
+ static readonly IntPtr selScreenRecordingsFilterHandle = Selector.GetHandle ("screenRecordingsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selScreenshotsFilter = "screenshotsFilter";
+ static readonly IntPtr selScreenshotsFilterHandle = Selector.GetHandle ("screenshotsFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSlomoVideosFilter = "slomoVideosFilter";
+ static readonly IntPtr selSlomoVideosFilterHandle = Selector.GetHandle ("slomoVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTimelapseVideosFilter = "timelapseVideosFilter";
+ static readonly IntPtr selTimelapseVideosFilterHandle = Selector.GetHandle ("timelapseVideosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVideosFilter = "videosFilter";
+ static readonly IntPtr selVideosFilterHandle = Selector.GetHandle ("videosFilter");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerFilter");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerFilter (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerFilter (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_Handle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_Handle, zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("allFilterMatchingSubfilters:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selAllFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("anyFilterMatchingSubfilters:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (subfilters is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (subfilters));
+ var nsa_subfilters = NSArray.FromNSObjects (subfilters);
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selAnyFilterMatchingSubfilters_Handle, nsa_subfilters.Handle))!;
+ nsa_subfilters.Dispose ();
+ return ret!;
+ }
+ [Export ("notFilterOfSubfilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var subfilter__handle__ = subfilter!.GetNonNullHandle (nameof (subfilter));
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selNotFilterOfSubfilter_Handle, subfilter__handle__))!;
+ }
+ [Export ("playbackStyleFilter:")]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter GetPlaybackStyleFilter (global::Photos.PHAssetPlaybackStyle playbackStyle)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ return Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selPlaybackStyleFilter_Handle, (IntPtr) (long) playbackStyle))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter BurstsFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("burstsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBurstsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter CinematicVideosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("cinematicVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selCinematicVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter DepthEffectPhotosFilter {
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("depthEffectPhotosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDepthEffectPhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter ImagesFilter {
+ [Export ("imagesFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selImagesFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter LivePhotosFilter {
+ [Export ("livePhotosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selLivePhotosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter PanoramasFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("panoramasFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selPanoramasFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenRecordingsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenRecordingsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selScreenRecordingsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter ScreenshotsFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("screenshotsFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selScreenshotsFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter SlomoVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("slomoVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selSlomoVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public static PHPickerFilter TimelapseVideosFilter {
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("timelapseVideosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selTimelapseVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static PHPickerFilter VideosFilter {
+ [Export ("videosFilter")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerFilter? ret;
+ ret = Runtime.GetNSObject<PHPickerFilter> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selVideosFilterHandle))!;
+ return ret!;
+ }
+ }
+ } /* class PHPickerFilter */
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerResult.g.cs b/new/mac/mobile/PhotosUI/PHPickerResult.g.cs
new file mode 100644
index 0000000..4209c57
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerResult.g.cs
@@ -0,0 +1,102 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerResult", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAssetIdentifier = "assetIdentifier";
+ static readonly IntPtr selAssetIdentifierHandle = Selector.GetHandle ("assetIdentifier");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selItemProvider = "itemProvider";
+ static readonly IntPtr selItemProviderHandle = Selector.GetHandle ("itemProvider");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerResult");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string? AssetIdentifier {
+ [Export ("assetIdentifier")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selAssetIdentifierHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selAssetIdentifierHandle))!;
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSItemProvider ItemProvider {
+ [Export ("itemProvider")]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSItemProvider? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selItemProviderHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSItemProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selItemProviderHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPickerResult */
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerViewController.g.cs b/new/mac/mobile/PhotosUI/PHPickerViewController.g.cs
new file mode 100644
index 0000000..2a5cf92
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerViewController.g.cs
@@ -0,0 +1,214 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Register("PHPickerViewController", true)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Advice (@"This type should not be subclassed.")]
+ public unsafe partial class PHPickerViewController : global::AppKit.NSViewController {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selConfiguration = "configuration";
+ static readonly IntPtr selConfigurationHandle = Selector.GetHandle ("configuration");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDelegate = "delegate";
+ static readonly IntPtr selDelegateHandle = Selector.GetHandle ("delegate");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeselectAssetsWithIdentifiers_ = "deselectAssetsWithIdentifiers:";
+ static readonly IntPtr selDeselectAssetsWithIdentifiers_Handle = Selector.GetHandle ("deselectAssetsWithIdentifiers:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithConfiguration_ = "initWithConfiguration:";
+ static readonly IntPtr selInitWithConfiguration_Handle = Selector.GetHandle ("initWithConfiguration:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selMoveAssetWithIdentifier_AfterAssetWithIdentifier_ = "moveAssetWithIdentifier:afterAssetWithIdentifier:";
+ static readonly IntPtr selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle = Selector.GetHandle ("moveAssetWithIdentifier:afterAssetWithIdentifier:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetDelegate_ = "setDelegate:";
+ static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle ("setDelegate:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPickerViewController");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPickerViewController (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewController (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewController (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithConfiguration:")]
+ [DesignatedInitializer]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public PHPickerViewController (PHPickerConfiguration configuration)
+ : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithConfiguration_Handle, configuration__handle__), "initWithConfiguration:");
+ }
+ }
+ [Export ("deselectAssetsWithIdentifiers:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void DeselectAssets (string[] identifiers)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifiers is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifiers));
+ var nsa_identifiers = NSArray.FromStrings (identifiers);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selDeselectAssetsWithIdentifiers_Handle, nsa_identifiers.Handle);
+ }
+ nsa_identifiers.Dispose ();
+ }
+ [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void MoveAsset (string identifier, string? afterIdentifier)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsidentifier = CFString.CreateNative (identifier);
+ var nsafterIdentifier = CFString.CreateNative (afterIdentifier);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selMoveAssetWithIdentifier_AfterAssetWithIdentifier_Handle, nsidentifier, nsafterIdentifier);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ CFString.ReleaseNative (nsafterIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPickerConfiguration Configuration {
+ [Export ("configuration", ArgumentSemantic.Copy)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ PHPickerConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selConfigurationHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPickerConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selConfigurationHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public IPHPickerViewControllerDelegate Delegate {
+ get {
+ return (WeakDelegate as IPHPickerViewControllerDelegate)!;
+ }
+ set {
+ var rvalue = value as NSObject;
+ if (!(value is null) && rvalue is null)
+ throw new ArgumentException ("The object passed of type " + value.GetType () + " does not derive from NSObject");
+ WeakDelegate = rvalue;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ object? __mt_WeakDelegate_var;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject? WeakDelegate {
+ [Export ("delegate", ArgumentSemantic.Weak)]
+ get {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDelegateHandle))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDelegateHandle))!;
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = ret;
+ return ret!;
+ }
+ [Export ("setDelegate:", ArgumentSemantic.Weak)]
+ set {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDelegate_Handle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDelegate_Handle, value__handle__);
+ }
+ MarkDirty ();
+ __mt_WeakDelegate_var = value;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ protected override void Dispose (bool disposing)
+ {
+ base.Dispose (disposing);
+ if (Handle == IntPtr.Zero) {
+ __mt_WeakDelegate_var = null;
+ }
+ }
+ } /* class PHPickerViewController */
+}
diff --git a/new/mac/mobile/PhotosUI/PHPickerViewControllerDelegate.g.cs b/new/mac/mobile/PhotosUI/PHPickerViewControllerDelegate.g.cs
new file mode 100644
index 0000000..af07299
--- /dev/null
+++ b/new/mac/mobile/PhotosUI/PHPickerViewControllerDelegate.g.cs
@@ -0,0 +1,118 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace PhotosUI {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Protocol (Name = "PHPickerViewControllerDelegate", WrapperType = typeof (PHPickerViewControllerDelegateWrapper))]
+ [ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidFinishPicking", Selector = "picker:didFinishPicking:", ParameterType = new Type [] { typeof (PhotosUI.PHPickerViewController), typeof (PhotosUI.PHPickerResult[]) }, ParameterByRef = new bool [] { false, false })]
+ public partial interface IPHPickerViewControllerDelegate : INativeObject, IDisposable
+ {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Export ("picker:didFinishPicking:")]
+ [Preserve (Conditional = true)]
+ void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
+ }
+ internal sealed class PHPickerViewControllerDelegateWrapper : BaseWrapper, IPHPickerViewControllerDelegate {
+ [Preserve (Conditional = true)]
+ public PHPickerViewControllerDelegateWrapper (IntPtr handle, bool owns)
+ : base (handle, owns)
+ {
+ }
+ [Export ("picker:didFinishPicking:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var picker__handle__ = picker!.GetNonNullHandle (nameof (picker));
+ if (results is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (results));
+ var nsa_results = NSArray.FromNSObjects (results);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("picker:didFinishPicking:"), picker__handle__, nsa_results.Handle);
+ nsa_results.Dispose ();
+ }
+ }
+}
+namespace PhotosUI {
+ [Protocol()]
+ [Register("Xamarin_Mac__PhotosUI_PHPickerViewControllerDelegate", false)]
+ [Model]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe abstract partial class PHPickerViewControllerDelegate : NSObject, IPHPickerViewControllerDelegate {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ protected PHPickerViewControllerDelegate () : base (NSObjectFlag.Empty)
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ IsDirectBinding = false;
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPickerViewControllerDelegate (NSObjectFlag t) : base (t)
+ {
+ IsDirectBinding = false;
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPickerViewControllerDelegate (IntPtr handle) : base (handle)
+ {
+ IsDirectBinding = false;
+ }
+
+ [Export ("picker:didFinishPicking:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public abstract void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
+ } /* class PHPickerViewControllerDelegate */
+}
diff --git a/old/mac/mobile/SupportDelegates.g.cs b/new/mac/mobile/SupportDelegates.g.cs
index c0ca25a..361e15e 100644
--- a/old/mac/mobile/SupportDelegates.g.cs
+++ b/new/mac/mobile/SupportDelegates.g.cs
@@ -590,6 +590,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (NSImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock2 (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace QuickLookUI {
diff --git a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
index c82fc1d..fca0d91 100644
--- a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs
+++ b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
@@ -7274,6 +7274,45 @@ namespace ObjCRuntime {
}
} /* class NIDPHLivePhotoFrameProcessingBlock2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::Photos.PHPersistentChangeFetchResultEnumerator))]
+ internal delegate void DPHPersistentChangeFetchResultEnumerator (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDPHPersistentChangeFetchResultEnumerator {
+ static internal readonly DPHPersistentChangeFetchResultEnumerator Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DPHPersistentChangeFetchResultEnumerator))]
+ static unsafe void Invoke (IntPtr block, IntPtr change, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<PHPersistentChange> (change)!, ref stop);
+ }
+ } /* class SDPHPersistentChangeFetchResultEnumerator */
+ internal sealed class NIDPHPersistentChangeFetchResultEnumerator : TrampolineBlockBase {
+ DPHPersistentChangeFetchResultEnumerator invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDPHPersistentChangeFetchResultEnumerator (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DPHPersistentChangeFetchResultEnumerator> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::Photos.PHPersistentChangeFetchResultEnumerator? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::Photos.PHPersistentChangeFetchResultEnumerator) GetExistingManagedDelegate (block);
+ return del ?? new NIDPHPersistentChangeFetchResultEnumerator ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::Photos.PHPersistentChange change, ref bool stop)
+ {
+ var change__handle__ = change.GetHandle ();
+ invoker (BlockPointer, change__handle__, ref stop);
+ }
+ } /* class NIDPHPersistentChangeFetchResultEnumerator */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::Photos.PHProgressHandler))]
internal delegate void DPHProgressHandler (IntPtr block, double progress, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/tvos/tvos/Photos/PHAsset.g.cs b/new/tvos/tvos/Photos/PHAsset.g.cs
index 2b0f79e..b425654 100644
--- a/old/tvos/tvos/Photos/PHAsset.g.cs
+++ b/new/tvos/tvos/Photos/PHAsset.g.cs
@@ -241,6 +241,23 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual bool HasAdjustments {
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("hasAdjustments")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("hasAdjustments"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("hasAdjustments"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Hidden {
[Export ("isHidden")]
get {
diff --git a/old/tvos/tvos/Photos/PHAssetCollection.g.cs b/new/tvos/tvos/Photos/PHAssetCollection.g.cs
index 62df4b9..202a58c 100644
--- a/old/tvos/tvos/Photos/PHAssetCollection.g.cs
+++ b/new/tvos/tvos/Photos/PHAssetCollection.g.cs
@@ -100,6 +100,9 @@ namespace Photos {
return Runtime.GetNSObject<PHFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (class_ptr, Selector.GetHandle ("fetchAssetCollectionsContainingAsset:withType:options:"), asset__handle__, (IntPtr) (long) type, options__handle__))!;
}
[Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")]
+ [Deprecated (PlatformName.iOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.TvOS, 16,0, message: "Will be removed in a future release.")]
+ [Deprecated (PlatformName.MacOSX, 13,0, message: "Will be removed in a future release.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHFetchResult FetchAssetCollections (NSUrl[] assetGroupUrls, PHFetchOptions? options)
{
diff --git a/old/tvos/tvos/Photos/PHAssetCollectionSubtype.g.cs b/new/tvos/tvos/Photos/PHAssetCollectionSubtype.g.cs
index ad94a77..060aeb9 100644
--- a/old/tvos/tvos/Photos/PHAssetCollectionSubtype.g.cs
+++ b/new/tvos/tvos/Photos/PHAssetCollectionSubtype.g.cs
@@ -90,6 +90,11 @@ namespace Photos {
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
SmartAlbumRAW = 217,
+ [Introduced (PlatformName.iOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ SmartAlbumCinematic = 218,
Any = 9223372036854775807,
}
}
diff --git a/old/tvos/tvos/Photos/PHAssetMediaSubtype.g.cs b/new/tvos/tvos/Photos/PHAssetMediaSubtype.g.cs
index fc40b87..080604c 100644
--- a/old/tvos/tvos/Photos/PHAssetMediaSubtype.g.cs
+++ b/new/tvos/tvos/Photos/PHAssetMediaSubtype.g.cs
@@ -59,5 +59,6 @@ namespace Photos {
VideoStreamed = 65536,
VideoHighFrameRate = 131072,
VideoTimelapse = 262144,
+ VideoCinematic = 2097152,
}
}
diff --git a/old/tvos/tvos/Photos/PHAssetResource.g.cs b/new/tvos/tvos/Photos/PHAssetResource.g.cs
index 5b0de9b..914b90a 100644
--- a/old/tvos/tvos/Photos/PHAssetResource.g.cs
+++ b/new/tvos/tvos/Photos/PHAssetResource.g.cs
@@ -97,6 +97,40 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelHeight {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelHeight")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelHeight"));
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelHeight"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual nint PixelWidth {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("pixelWidth")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("pixelWidth"));
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("pixelWidth"));
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual PHAssetResourceType ResourceType {
[Export ("type", ArgumentSemantic.UnsafeUnretained)]
get {
diff --git a/new/tvos/tvos/Photos/PHObjectType.g.cs b/new/tvos/tvos/Photos/PHObjectType.g.cs
new file mode 100644
index 0000000..ecd7b0f
--- /dev/null
+++ b/new/tvos/tvos/Photos/PHObjectType.g.cs
@@ -0,0 +1,51 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum PHObjectType : long {
+ Asset = 1,
+ AssetCollection = 2,
+ CollectionList = 3,
+ }
+}
diff --git a/new/tvos/tvos/Photos/PHPersistentChange.g.cs b/new/tvos/tvos/Photos/PHPersistentChange.g.cs
new file mode 100644
index 0000000..d014c95
--- /dev/null
+++ b/new/tvos/tvos/Photos/PHPersistentChange.g.cs
@@ -0,0 +1,90 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChange", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChange : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChange");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChange (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChange (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("changeDetailsForObjectType:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentObjectChangeDetails? GetChangeDetails (PHObjectType objectType, out NSError? error)
+ {
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentObjectChangeDetails? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentObjectChangeDetails> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, Selector.GetHandle ("changeDetailsForObjectType:error:"), (IntPtr) (long) objectType, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeToken ChangeToken {
+ [Export ("changeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("changeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("changeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentChange */
+}
diff --git a/new/tvos/tvos/Photos/PHPersistentChangeFetchResult.g.cs b/new/tvos/tvos/Photos/PHPersistentChangeFetchResult.g.cs
new file mode 100644
index 0000000..b48f55b
--- /dev/null
+++ b/new/tvos/tvos/Photos/PHPersistentChangeFetchResult.g.cs
@@ -0,0 +1,81 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeFetchResult", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeFetchResult : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeFetchResult");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeFetchResult (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeFetchResult (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("enumerateChangesWithBlock:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EnumerateChanges ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDPHPersistentChangeFetchResultEnumerator))]PHPersistentChangeFetchResultEnumerator block)
+ {
+ if (block is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (block));
+ BlockLiteral *block_ptr_block;
+ BlockLiteral block_block;
+ block_block = new BlockLiteral ();
+ block_ptr_block = &block_block;
+ block_block.SetupBlockUnsafe (Trampolines.SDPHPersistentChangeFetchResultEnumerator.Handler, block);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("enumerateChangesWithBlock:"), (IntPtr) block_ptr_block);
+ }
+ block_ptr_block->CleanupBlock ();
+ }
+ } /* class PHPersistentChangeFetchResult */
+}
diff --git a/new/tvos/tvos/Photos/PHPersistentChangeToken.g.cs b/new/tvos/tvos/Photos/PHPersistentChangeToken.g.cs
new file mode 100644
index 0000000..8f377f2
--- /dev/null
+++ b/new/tvos/tvos/Photos/PHPersistentChangeToken.g.cs
@@ -0,0 +1,103 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentChangeToken", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentChangeToken : NSObject, INSCoding, INSCopying, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentChangeToken");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public PHPersistentChangeToken (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentChangeToken (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentChangeToken (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret != null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ } /* class PHPersistentChangeToken */
+}
diff --git a/new/tvos/tvos/Photos/PHPersistentObjectChangeDetails.g.cs b/new/tvos/tvos/Photos/PHPersistentObjectChangeDetails.g.cs
new file mode 100644
index 0000000..7be087c
--- /dev/null
+++ b/new/tvos/tvos/Photos/PHPersistentObjectChangeDetails.g.cs
@@ -0,0 +1,115 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Photos {
+ [Register("PHPersistentObjectChangeDetails", true)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class PHPersistentObjectChangeDetails : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("PHPersistentObjectChangeDetails");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected PHPersistentObjectChangeDetails (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal PHPersistentObjectChangeDetails (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> DeletedLocalIdentifiers {
+ [Export ("deletedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("deletedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> InsertedLocalIdentifiers {
+ [Export ("insertedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("insertedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHObjectType ObjectType {
+ [Export ("objectType")]
+ get {
+ PHObjectType ret;
+ if (IsDirectBinding) {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("objectType"));
+ } else {
+ ret = (PHObjectType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("objectType"));
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSSet<NSString> UpdatedLocalIdentifiers {
+ [Export ("updatedLocalIdentifiers", ArgumentSemantic.Retain)]
+ get {
+ NSSet<NSString>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSSet<NSString>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("updatedLocalIdentifiers")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class PHPersistentObjectChangeDetails */
+}
diff --git a/old/tvos/tvos/Photos/PHPhotoLibrary.g.cs b/new/tvos/tvos/Photos/PHPhotoLibrary.g.cs
index f57606f..777a3ef 100644
--- a/old/tvos/tvos/Photos/PHPhotoLibrary.g.cs
+++ b/new/tvos/tvos/Photos/PHPhotoLibrary.g.cs
@@ -59,6 +59,24 @@ namespace Photos {
{
}
+ [Export ("fetchPersistentChangesSinceToken:error:")]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual PHPersistentChangeFetchResult? FetchPersistentChanges (PHPersistentChangeToken since, out NSError? error)
+ {
+ var since__handle__ = since!.GetNonNullHandle (nameof (since));
+ IntPtr errorValue = IntPtr.Zero;
+ PHPersistentChangeFetchResult? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeFetchResult> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, Selector.GetHandle ("fetchPersistentChangesSinceToken:error:"), since__handle__, ref errorValue))!;
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
[Export ("authorizationStatusForAccessLevel:")]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 11,0, ObjCRuntime.PlatformArchitecture.All)]
@@ -256,6 +274,25 @@ namespace Photos {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual PHPersistentChangeToken CurrentChangeToken {
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("currentChangeToken")]
+ get {
+ PHPersistentChangeToken? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("currentChangeToken")))!;
+ } else {
+ ret = Runtime.GetNSObject<PHPersistentChangeToken> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("currentChangeToken")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static PHPhotoLibrary SharedPhotoLibrary {
[Export ("sharedPhotoLibrary")]
get {
diff --git a/old/tvos/tvos/Photos/PHPhotosError.g.cs b/new/tvos/tvos/Photos/PHPhotosError.g.cs
index 1814a42..6272239 100644
--- a/old/tvos/tvos/Photos/PHPhotosError.g.cs
+++ b/new/tvos/tvos/Photos/PHPhotosError.g.cs
@@ -52,6 +52,7 @@ namespace Photos {
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
+ NetworkError = 3169,
IdentifierNotFound = 3201,
MultipleIdentifiersFound = 3202,
ChangeNotSupported = 3300,
@@ -63,6 +64,8 @@ namespace Photos {
AccessRestricted = 3310,
AccessUserDenied = 3311,
LibraryInFileProviderSyncRoot = 5423,
+ PersistentChangeTokenExpired = 3105,
+ PersistentChangeDetailsUnavailable = 3210,
}
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/tvos/tvos/PhotosUI/PHLivePhotoViewDelegate.g.cs b/new/tvos/tvos/PhotosUI/PHLivePhotoViewDelegate.g.cs
index 710c5b5..20be6e4 100644
--- a/old/tvos/tvos/PhotosUI/PHLivePhotoViewDelegate.g.cs
+++ b/new/tvos/tvos/PhotosUI/PHLivePhotoViewDelegate.g.cs
@@ -46,6 +46,7 @@ namespace PhotosUI {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanBeginPlayback", Selector = "livePhotoView:canBeginPlaybackWithStyle:", ReturnType = typeof (bool), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillBeginPlayback", Selector = "livePhotoView:willBeginPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidEndPlayback", Selector = "livePhotoView:didEndPlaybackWithStyle:", ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false })]
+ [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetExtraMinimumTouchDuration", Selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:", ReturnType = typeof (double), ParameterType = new Type [] { typeof (PhotosUI.PHLivePhotoView), typeof (UITouch), typeof (PhotosUI.PHLivePhotoViewPlaybackStyle) }, ParameterByRef = new bool [] { false, false, false })]
public partial interface IPHLivePhotoViewDelegate : INativeObject, IDisposable
{
}
@@ -75,6 +76,15 @@ namespace PhotosUI {
var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:didEndPlaybackWithStyle:"), livePhotoView__handle__, (IntPtr) (long) playbackStyle);
}
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ global::UIKit.UIApplication.EnsureUIThread ();
+ var livePhotoView__handle__ = livePhotoView!.GetNonNullHandle (nameof (livePhotoView));
+ var touch__handle__ = touch!.GetNonNullHandle (nameof (touch));
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:"), livePhotoView__handle__, touch__handle__, (IntPtr) (long) playbackStyle);
+ }
}
internal sealed class PHLivePhotoViewDelegateWrapper : BaseWrapper, IPHLivePhotoViewDelegate {
[Preserve (Conditional = true)]
@@ -132,6 +142,13 @@ namespace PhotosUI {
{
throw new You_Should_Not_Call_base_In_This_Method ();
}
+ [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")]
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, global::UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle)
+ {
+ throw new You_Should_Not_Call_base_In_This_Method ();
+ }
[Export ("livePhotoView:willBeginPlaybackWithStyle:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void WillBeginPlayback (PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle)
diff --git a/old/tvos/tvos/SupportDelegates.g.cs b/new/tvos/tvos/SupportDelegates.g.cs
index f872d87..331a12c 100644
--- a/old/tvos/tvos/SupportDelegates.g.cs
+++ b/new/tvos/tvos/SupportDelegates.g.cs
@@ -301,6 +301,7 @@ namespace Photos {
public delegate void PHImageManagerRequestPlayerHandler (AVPlayerItem playerItem, NSDictionary info);
public delegate void PHImageResultHandler (UIImage result, NSDictionary info);
public delegate CIImage PHLivePhotoFrameProcessingBlock2 (IPHLivePhotoFrame frame, ref NSError error);
+ public delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop);
public delegate void PHProgressHandler (double progress, ref bool stop);
}
namespace ReplayKit {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment