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

API diff: Microsoft.MacCatalyst.dll

Microsoft.MacCatalyst.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

Type Changed: PhotosUI.PHLivePhotoViewDelegate

Added method:

public virtual double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle);

Type Changed: PhotosUI.PHLivePhotoViewDelegate_Extensions

Added method:

public static double GetExtraMinimumTouchDuration (this IPHLivePhotoViewDelegate This, PHLivePhotoView livePhotoView, UIKit.UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle);

Type Changed: PhotosUI.PHPickerFilter

Added properties:

public static PHPickerFilter BurstsFilter { get; }
public static PHPickerFilter CinematicVideosFilter { get; }
public static PHPickerFilter DepthEffectPhotosFilter { 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; }

Added methods:

public static PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters);
public static PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter);
public static PHPickerFilter GetPlaybackStyleFilter (Photos.PHAssetPlaybackStyle playbackStyle);

Type Changed: PhotosUI.PHPickerViewController

Added methods:

public virtual void DeselectAssets (string[] identifiers);
public virtual void MoveAsset (string identifier, string afterIdentifier);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment