Xamarin.Mac SDK API diff: 6.6.0 vs 6.10.0

Mono.Security.dll

Namespace Mono.Security.Authenticode

Type Changed: Mono.Security.Authenticode.AuthenticodeDeformatter

Added constructor:

public AuthenticodeDeformatter (byte[] rawData);

Added property:

public byte[] RawData { get; set; }

System.dll

Namespace System.Net.Sockets

Type Changed: System.Net.Sockets.Socket

Modified methods:

-public System.IAsyncResult BeginConnect (string host, int port, System.AsyncCallback requestCallback, object state)
+public System.IAsyncResult BeginConnect (string host, int port, System.AsyncCallback callback, object state)

Xamarin.Mac.dll

Namespace AppKit

Type Changed: AppKit.NSWorkspace

Added method:

public virtual NSImage IconForFileType (HfsTypeCode typeCode);

New Type: AppKit.HfsTypeCode

[Serializable]
public enum HfsTypeCode {
	AfpServerIcon = 1634103411,
	AlertCautionBadgeIcon = 1667392615,
	AlertCautionIcon = 1667331444,
	AlertNoteIcon = 1852798053,
	AlertStopIcon = 1937010544,
	AliasBadgeIcon = 1633838183,
	AppearanceFolderIcon = 1634758770,
	AppleLogoIcon = 1667330156,
	AppleMenuFolderIcon = 1634561653,
	AppleMenuIcon = 1935765612,
	AppleScriptBadgeIcon = 1935897200,
	AppleTalkIcon = 1635019883,
	AppleTalkZoneIcon = 1635023470,
	ApplicationSupportFolderIcon = 1634956656,
	ApplicationsFolderIcon = 1634758771,
	BackwardArrowIcon = 1650553455,
	BurningIcon = 1651864174,
	ClipboardIcon = 1129072976,
	ClippingPictureTypeIcon = 1668051056,
	ClippingSoundTypeIcon = 1668051059,
	ClippingTextTypeIcon = 1668051060,
	ClippingUnknownTypeIcon = 1668051061,
	ColorSyncFolderIcon = 1886547814,
	ComputerIcon = 1919905652,
	ConnectToIcon = 1668178804,
	ContextualMenuItemsFolderIcon = 1668116085,
	ControlPanelDisabledFolderIcon = 1668575812,
	ControlPanelFolderIcon = 1668575852,
	DeleteAliasIcon = 1684106345,
	DesktopIcon = 1684370283,
	DocumentsFolderIcon = 1685021555,
	DropFolderIcon = 1684172664,
	EjectMediaIcon = 1701471587,
	ExtensionsDisabledFolderIcon = 1702392900,
	ExtensionsFolderIcon = 1702392942,
	FavoriteItemsIcon = 1717663346,
	FavoritesFolderIcon = 1717663347,
	FinderIcon = 1179534418,
	FontSuitcaseIcon = 1179011404,
	FontsFolderIcon = 1718578804,
	ForwardArrowIcon = 1717662319,
	FtpServerIcon = 1718906995,
	FullTrashIcon = 1718907496,
	GenericApplicationIcon = 1095782476,
	GenericCdromIcon = 1667523698,
	GenericComponentIcon = 1953001063,
	GenericControlPanelIcon = 1095782467,
	GenericControlStripModuleIcon = 1935959414,
	GenericDeskAccessoryIcon = 1095782468,
	GenericDocumentIcon = 1685021557,
	GenericEditionFileIcon = 1701082214,
	GenericExtensionIcon = 1229867348,
	GenericFileServerIcon = 1936881266,
	GenericFloppyIcon = 1718382713,
	GenericFolderIcon = 1718379634,
	GenericFontIcon = 1717987692,
	GenericFontScalerIcon = 1935895666,
	GenericHardDiskIcon = 1751413611,
	GenericIDiskIcon = 1768190827,
	GenericMoverObjectIcon = 1836021362,
	GenericNetworkIcon = 1735288180,
	GenericPCCardIcon = 1885564259,
	GenericPreferencesIcon = 1886545254,
	GenericQueryDocumentIcon = 1902473849,
	GenericRamDiskIcon = 1918987620,
	GenericRemovableMediaIcon = 1919774582,

	[Obsolete ("Use 'GenericSharedLibraryIcon' instead.")]
GenericSharedLibaryIcon = 1936223330,
	GenericSharedLibraryIcon = 1936223330,
	GenericStationeryIcon = 1935961955,
	GenericSuitcaseIcon = 1937074548,
	GenericUrlIcon = 1735750252,
	GenericWindowIcon = 1735879022,
	GenericWormIcon = 2003792493,
	GridIcon = 1735551332,
	GroupIcon = 1735554416,
	GuestUserIcon = 1735750514,
	HelpIcon = 1751477360,
	HttpServerIcon = 1752461427,
	IPFileServerIcon = 1769173622,
	InternationalResourcesIcon = 1768319340,
	InternetLocationAppleShareIcon = 1768710502,
	InternetLocationAppleTalkZoneIcon = 1768710516,
	InternetLocationFileIcon = 1768711785,
	InternetLocationFtpIcon = 1768711796,
	InternetLocationGenericIcon = 1768712037,
	InternetLocationHttpIcon = 1768712308,
	InternetLocationMailIcon = 1768713569,
	InternetLocationNewsIcon = 1768713847,
	InternetLocationNslNeighborhoodIcon = 1768713843,
	InternetSearchSitesFolderIcon = 1769173862,
	KeepArrangedIcon = 1634889319,
	KeyboardLayoutIcon = 1801873772,
	LockedBadgeIcon = 1818387559,
	LockedIcon = 1819239275,
	MountedBadgeIcon = 1835164775,
	MountedFolderIcon = 1835955300,
	NoFilesIcon = 1852205420,
	NoFolderIcon = 1852206180,
	NoWriteIcon = 1853321844,
	OpenFolderIcon = 1868983396,
	OwnedFolderIcon = 1870098020,
	OwnerIcon = 1937077106,
	PrintMonitorFolderIcon = 1886547572,
	PrinterDescriptionFolderIcon = 1886413926,
	PrivateFolderIcon = 1886549606,
	ProtectedApplicationFolderIcon = 1885433968,
	ProtectedSystemFolderIcon = 1886615923,
	PublicFolderIcon = 1886741094,
	QuestionMarkIcon = 1903519091,
	RecentApplicationsFolderIcon = 1918988400,
	RecentDocumentsFolderIcon = 1919184739,
	RecentItemsIcon = 1919118964,
	RecentServersFolderIcon = 1920168566,
	RightContainerArrowIcon = 1919115634,
	SharedBadgeIcon = 1935828071,
	SharedFolderIcon = 1936221804,
	SharingPrivsNotApplicableIcon = 1936223841,
	SharingPrivsReadOnlyIcon = 1936224879,
	SharingPrivsReadWriteIcon = 1936224887,
	SharingPrivsUnknownIcon = 1936225643,
	SharingPrivsWritableIcon = 2003986804,
	ShortcutIcon = 1936224884,
	ShutdownItemsDisabledFolderIcon = 1936221252,
	ShutdownItemsFolderIcon = 1936221286,
	SortAscendingIcon = 1634954852,
	SortDescendingIcon = 1685286500,
	SoundFileIcon = 1936091500,
	SpeakableItemsFolder = 1936747369,
	StartupItemsDisabledFolderIcon = 1937011268,
	StartupItemsFolderIcon = 1937011316,
	SystemExtensionDisabledFolderIcon = 1835098948,
	SystemFolderIcon = 1835098995,
	SystemSuitcaseIcon = 2054388083,
	ToolbarAdvancedIcon = 1952604534,
	ToolbarApplicationsFolderIcon = 1950445683,
	ToolbarCustomizeIcon = 1952675187,
	ToolbarDeleteIcon = 1952736620,
	ToolbarDesktopFolderIcon = 1950643051,
	ToolbarDocumentsFolderIcon = 1950642019,
	ToolbarDownloadsFolderIcon = 1950644078,
	ToolbarFavoritesIcon = 1952866678,
	ToolbarHomeIcon = 1953001325,
	ToolbarInfoIcon = 1952606574,
	ToolbarLabelsIcon = 1952607330,
	ToolbarLibraryFolderIcon = 1951164770,
	ToolbarMovieFolderIcon = 1951231862,
	ToolbarMusicFolderIcon = 1951233395,
	ToolbarPicturesFolderIcon = 1951426915,
	ToolbarPublicFolderIcon = 1951429986,
	ToolbarSitesFolderIcon = 1951626355,
	ToolbarUtilitiesFolderIcon = 1951757420,
	TrashIcon = 1953657704,
	TrueTypeFlatFontIcon = 1936092788,
	TrueTypeFontIcon = 1952868716,
	TrueTypeMultiFlatFontIcon = 1953784678,
	UnknownFSObjectIcon = 1970169459,
	UnlockedIcon = 1970037611,
	UserFolderIcon = 1969646692,
	UserIDiskIcon = 1969517419,
	UserIcon = 1970496882,
	VoicesFolderIcon = 1719037795,
	WorkgroupFolderIcon = 2003201124,
}

Namespace Foundation

Type Changed: Foundation.NSDate

Added properties:

public virtual double SecondsSince1970 { get; }
public virtual double SecondsSinceNow { get; }

Added method:

public virtual double GetSecondsSince (NSDate anotherDate);

Type Changed: Foundation.NSUrlSessionHandler

Added property:

public bool BypassBackgroundSessionCheck { get; set; }

Namespace Metal

Type Changed: Metal.MTLComputeCommandEncoder_Extensions

Obsoleted methods:

 [Obsolete ("Use the overload that takes an IMTLCounterSampleBuffer instead.")]
 public static void SampleCounters (this IMTLComputeCommandEncoder This, MTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier);

Added method:

public static void SampleCounters (this IMTLComputeCommandEncoder This, IMTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier);

Type Changed: Metal.MTLDevice_Extensions

Obsoleted methods:

 [Obsolete ("Use 'CreateIMTLCounterSampleBuffer' instead.")]
 public static MTLCounterSampleBuffer CreateCounterSampleBuffer (this IMTLDevice This, MTLCounterSampleBufferDescriptor descriptor, out Foundation.NSError error);

Added methods:

public static IMTLCounterSampleBuffer CreateIMTLCounterSampleBuffer (this IMTLDevice This, MTLCounterSampleBufferDescriptor descriptor, out Foundation.NSError error);
public static IMTLCounterSet[] GetIMTLCounterSets (this IMTLDevice This);

Namespace Network

Type Changed: Network.NWFramer

Added properties:

public System.Action<NWFramer> CleanupHandler { set; }
public NWEndpoint Endpoint { get; }
public NWFramerInputDelegate InputHandler { set; }
public NWEndpoint LocalEndpoint { get; }
public System.Action<NWFramer,Network.NWFramerMessage,System.nuint,System.Boolean> OutputHandler { set; }
public NWParameters Parameters { get; }
public System.Action<NWFramer> StopHandler { set; }
public System.Action<NWFramer> WakeupHandler { set; }

Added methods:

public static T CreateOptions<T> (NWProtocolDefinition protocolDefinition);
public void DeliverInput (System.ReadOnlySpan<byte> buffer, NWFramerMessage message, bool isComplete);
public bool DeliverInputNoCopy (nuint length, NWFramerMessage message, bool isComplete);
public void MarkFailedWithError (int errorCode);
public void MarkReady ();
public bool ParseInput (nuint minimumIncompleteLength, nuint maximumLength, System.Memory<byte> tempBuffer, NWFramerParseCompletionDelegate handler);
public bool ParseOutput (nuint minimumIncompleteLength, nuint maximumLength, System.Memory<byte> tempBuffer, System.Action<System.Memory<byte>> handler);
public void PassThroughInput ();
public void PassThroughOutput ();
public bool PrependApplicationProtocol (NWProtocolOptions options);
public void ScheduleAsync (System.Action handler);
public void ScheduleWakeup (ulong milliseconds);
public void WriteOutput (CoreFoundation.DispatchData data);
public void WriteOutput (System.ReadOnlySpan<byte> data);
public bool WriteOutputNoCopy (nuint outputLength);

Type Changed: Network.NWParameters

Added method:

public static NWParameters CreateCustomIP (byte protocolNumber, System.Action<NWProtocolOptions> configureCustomIP);

Type Changed: Network.NWPathMonitor

Added properties:

public NWPath CurrentPath { get; }
public System.Action<NWPath> SnapshotHandler { get; set; }

Obsoleted methods:

 [Obsolete ("Use the 'SnapshotHandler' property instead.")]
 public void SetUpdatedSnapshotHandler (System.Action<NWPath> callback);

New Type: Network.NWEthernetChannel

public class NWEthernetChannel : CoreFoundation.NativeObject, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public NWEthernetChannel (ushort ethernetType, NWInterface networkInterface);
	// methods
	public void Cancel ();
	public void Send (System.ReadOnlySpan<byte> content, ushort vlanTag, string remoteAddress, System.Action<NWError> callback);
	public void SetQueue (CoreFoundation.DispatchQueue queue);
	public void SetReceiveHandler (NWEthernetChannelReceiveDelegate handler);
	public void SetStateChangesHandler (System.Action<NWBrowserState,Network.NWError> handler);
	public void Start ();
}

New Type: Network.NWEthernetChannelReceiveDelegate

public sealed delegate NWEthernetChannelReceiveDelegate : System.MulticastDelegate, System.ICloneable, System.Runtime.Serialization.ISerializable {
	// constructors
	public NWEthernetChannelReceiveDelegate (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (CoreFoundation.DispatchData content, ushort vlanTag, string localAddress, string remoteAddress, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (CoreFoundation.DispatchData content, ushort vlanTag, string localAddress, string remoteAddress);
}

New Type: Network.NWEthernetChannelState

[Serializable]
public enum NWEthernetChannelState {
	Cancelled = 5,
	Failed = 4,
	Invalid = 0,
	Preparing = 2,
	Ready = 3,
	Waiting = 1,
}

New Type: Network.NWFramerInputDelegate

public sealed delegate NWFramerInputDelegate : System.MulticastDelegate, System.ICloneable, System.Runtime.Serialization.ISerializable {
	// constructors
	public NWFramerInputDelegate (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (NWFramer framer, System.AsyncCallback callback, object object);
	public virtual nuint EndInvoke (System.IAsyncResult result);
	public virtual nuint Invoke (NWFramer framer);
}

New Type: Network.NWFramerParseCompletionDelegate

public sealed delegate NWFramerParseCompletionDelegate : System.MulticastDelegate, System.ICloneable, System.Runtime.Serialization.ISerializable {
	// constructors
	public NWFramerParseCompletionDelegate (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (System.Memory<byte> buffer, bool isCompleted, System.AsyncCallback callback, object object);
	public virtual nuint EndInvoke (System.IAsyncResult result);
	public virtual nuint Invoke (System.Memory<byte> buffer, bool isCompleted);
}

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string Version = "6.6.0";
+public const string Version = "6.10.0";

Type Changed: ObjCRuntime.Runtime

Added method:

public static T GetINativeObject<T> (IntPtr ptr, bool forced_type, bool owns);

New Type: ObjCRuntime.TrampolineBlockBase

public abstract class TrampolineBlockBase {
	// constructors
	protected TrampolineBlockBase (BlockLiteral* block);
	// properties
	protected IntPtr BlockPointer { get; }
	// methods
	protected static object GetExistingManagedDelegate (IntPtr block);
	protected override void ~TrampolineBlockBase ();
}