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/30b042d7560990061f4ca67b9fa0426b to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/30b042d7560990061f4ca67b9fa0426b to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.macOS.Ref/ref/net6.0/Microsoft.macOS.md

API diff: Microsoft.macOS.dll

Microsoft.macOS.dll

Namespace Photos

Type Changed: Photos.PHAsset

Added property:

public virtual bool HasAdjustments { get; }

Type Changed: Photos.PHAssetCollectionSubtype

Added value:

SmartAlbumCinematic = 218,

Type Changed: Photos.PHAssetMediaSubtype

Added value:

VideoCinematic = 2097152,

Type Changed: Photos.PHAssetResource

Added properties:

public virtual nint PixelHeight { get; }
public virtual nint PixelWidth { get; }

Type Changed: Photos.PHPhotoLibrary

Added property:

public virtual PHPersistentChangeToken CurrentChangeToken { get; }

Added method:

public virtual PHPersistentChangeFetchResult FetchPersistentChanges (PHPersistentChangeToken since, out Foundation.NSError error);

Type Changed: Photos.PHPhotosError

Added values:

NetworkError = 3169,
PersistentChangeDetailsUnavailable = 3210,
PersistentChangeTokenExpired = 3105,

New Type: Photos.PHObjectType

[Serializable]
public enum PHObjectType {
	Asset = 1,
	AssetCollection = 2,
	CollectionList = 3,
}

New Type: Photos.PHPersistentChange

public class PHPersistentChange : Foundation.NSObject {
	// constructors
	protected PHPersistentChange (Foundation.NSObjectFlag t);
	protected PHPersistentChange (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual PHPersistentChangeToken ChangeToken { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual PHPersistentObjectChangeDetails GetChangeDetails (PHObjectType objectType, out Foundation.NSError error);
}

New Type: Photos.PHPersistentChangeFetchResult

public class PHPersistentChangeFetchResult : Foundation.NSObject {
	// constructors
	protected PHPersistentChangeFetchResult (Foundation.NSObjectFlag t);
	protected PHPersistentChangeFetchResult (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual void EnumerateChanges (PHPersistentChangeFetchResultEnumerator block);
}

New Type: Photos.PHPersistentChangeFetchResultEnumerator

public sealed delegate PHPersistentChangeFetchResultEnumerator : System.MulticastDelegate {
	// constructors
	public PHPersistentChangeFetchResultEnumerator (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (PHPersistentChange change, ref bool stop, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (ref bool stop, System.IAsyncResult result);
	public virtual void Invoke (PHPersistentChange change, ref bool stop);
}

New Type: Photos.PHPersistentChangeToken

public class PHPersistentChangeToken : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public PHPersistentChangeToken (Foundation.NSCoder coder);
	protected PHPersistentChangeToken (Foundation.NSObjectFlag t);
	protected PHPersistentChangeToken (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: Photos.PHPersistentObjectChangeDetails

public class PHPersistentObjectChangeDetails : Foundation.NSObject {
	// constructors
	protected PHPersistentObjectChangeDetails (Foundation.NSObjectFlag t);
	protected PHPersistentObjectChangeDetails (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSSet<Foundation.NSString> DeletedLocalIdentifiers { get; }
	public virtual Foundation.NSSet<Foundation.NSString> InsertedLocalIdentifiers { get; }
	public virtual PHObjectType ObjectType { get; }
	public virtual Foundation.NSSet<Foundation.NSString> UpdatedLocalIdentifiers { get; }
}

Namespace PhotosUI

New Type: PhotosUI.IPHPickerViewControllerDelegate

public interface IPHPickerViewControllerDelegate : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public virtual void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
}

New Type: PhotosUI.PHPickerConfiguration

public class PHPickerConfiguration : Foundation.NSObject, Foundation.INSCopying, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public PHPickerConfiguration ();
	protected PHPickerConfiguration (Foundation.NSObjectFlag t);
	protected PHPickerConfiguration (ObjCRuntime.NativeHandle handle);
	public PHPickerConfiguration (Photos.PHPhotoLibrary photoLibrary);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual PHPickerFilter Filter { get; set; }
	public virtual PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode { get; set; }
	public virtual string[] PreselectedAssetIdentifiers { get; set; }
	public virtual PHPickerConfigurationSelection Selection { get; set; }
	public virtual nint SelectionLimit { get; set; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
}

New Type: PhotosUI.PHPickerConfigurationAssetRepresentationMode

[Serializable]
public enum PHPickerConfigurationAssetRepresentationMode {
	Automatic = 0,
	Compatible = 2,
	Current = 1,
}

New Type: PhotosUI.PHPickerConfigurationSelection

[Serializable]
public enum PHPickerConfigurationSelection {
	Default = 0,
	Ordered = 1,
}

New Type: PhotosUI.PHPickerFilter

public class PHPickerFilter : Foundation.NSObject, Foundation.INSCopying, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected PHPickerFilter (Foundation.NSObjectFlag t);
	protected PHPickerFilter (ObjCRuntime.NativeHandle handle);
	// properties
	public static PHPickerFilter BurstsFilter { get; }
	public static PHPickerFilter CinematicVideosFilter { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static PHPickerFilter DepthEffectPhotosFilter { get; }
	public static PHPickerFilter ImagesFilter { get; }
	public static PHPickerFilter LivePhotosFilter { get; }
	public static PHPickerFilter PanoramasFilter { get; }
	public static PHPickerFilter ScreenRecordingsFilter { get; }
	public static PHPickerFilter ScreenshotsFilter { get; }
	public static PHPickerFilter SlomoVideosFilter { get; }
	public static PHPickerFilter TimelapseVideosFilter { get; }
	public static PHPickerFilter VideosFilter { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters);
	public static PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters);
	public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter);
	public static PHPickerFilter GetPlaybackStyleFilter (Photos.PHAssetPlaybackStyle playbackStyle);
}

New Type: PhotosUI.PHPickerResult

public class PHPickerResult : Foundation.NSObject {
	// constructors
	protected PHPickerResult (Foundation.NSObjectFlag t);
	protected PHPickerResult (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual string AssetIdentifier { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSItemProvider ItemProvider { get; }
}

New Type: PhotosUI.PHPickerViewController

public class PHPickerViewController : AppKit.NSViewController {
	// constructors
	public PHPickerViewController (Foundation.NSCoder coder);
	protected PHPickerViewController (Foundation.NSObjectFlag t);
	protected PHPickerViewController (ObjCRuntime.NativeHandle handle);
	public PHPickerViewController (PHPickerConfiguration configuration);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual PHPickerConfiguration Configuration { get; }
	public IPHPickerViewControllerDelegate Delegate { get; set; }
	public virtual Foundation.NSObject WeakDelegate { get; set; }
	// methods
	public virtual void DeselectAssets (string[] identifiers);
	protected override void Dispose (bool disposing);
	public virtual void MoveAsset (string identifier, string afterIdentifier);
}

New Type: PhotosUI.PHPickerViewControllerDelegate

public abstract class PHPickerViewControllerDelegate : Foundation.NSObject, ObjCRuntime.INativeObject, IPHPickerViewControllerDelegate, System.IDisposable {
	// constructors
	protected PHPickerViewControllerDelegate ();
	protected PHPickerViewControllerDelegate (Foundation.NSObjectFlag t);
	protected PHPickerViewControllerDelegate (ObjCRuntime.NativeHandle handle);
	// methods
	public virtual void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment