title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.Mac SDK API diff: 7.10.0 vs 7.99.0 |
List of API changes between Xamarin.Mac versions 7.10.0 and 7.99.0. |
spouliot |
sepoulio |
6/15/2021 |
article |
e414f040-4f88-4e19-9a98-e09fb4fc9c93 |
xamarin |
Obsoleted properties:
[Obsolete ("Use 'TemplateItems' instead.")]
public virtual AVPlayerItem[] InterstitialTemplateItems { get; }
Removed methods:
public static AVPlayerInterstitialEvent GetInterstitialEvent (AVPlayerItem primaryItem, CoreMedia.CMTime time, AVPlayerItem[] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CoreMedia.CMTime resumptionOffset);
public static AVPlayerInterstitialEvent GetInterstitialEvent (AVPlayerItem primaryItem, Foundation.NSDate date, AVPlayerItem[] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CoreMedia.CMTime resumptionOffset);
public static AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, CoreMedia.CMTime time, AVPlayerItem[] interstitialTemplateItems, AVPlayerInterstitialEventRestrictions restrictions, CoreMedia.CMTime resumptionOffset);
public static AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, Foundation.NSDate date, AVPlayerItem[] interstitialTemplateItems, AVPlayerInterstitialEventRestrictions restrictions, CoreMedia.CMTime resumptionOffset);
Obsoleted properties:
[Obsolete ("Use 'Events' instead.")]
public virtual AVPlayerInterstitialEvent[] InterstitialEvents { get; set; }
Obsoleted methods:
[Obsolete ("Use 'GetInterstitialEventController' instead.")]
public static AVPlayerInterstitialEventController GetPlayerInterstitialEventController (AVPlayer primaryPlayer);
Obsoleted properties:
[Obsolete ("Use 'Events' instead.")]
public virtual AVPlayerInterstitialEvent[] InterstitialEvents { get; }
Removed method:
public static AVPlayerInterstitialEventObserver GetPlayerInterstitialEventObserver (AVPlayer primaryPlayer);
Obsoleted methods:
[Obsolete ("Empty stub. This member was retroactively marked as unavailable for macOS.")]
public virtual void ClearAdvertisingIdentifier ();
Modified fields:
-ARM = 18
+ARM = 12
-ARM64 = 16777234
+ARM64 = 16777228
-PPC = 24
+PPC = 18
-PPC64 = 16777240
+PPC64 = 16777234
Added methods:
public static string FromHandle (IntPtr handle);
public static string FromHandle (IntPtr handle, bool releaseHandle);
public class CIConvolutionRGB3X3 : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIConvolutionRGB3X3 ();
public CIConvolutionRGB3X3 (Foundation.NSCoder coder);
protected CIConvolutionRGB3X3 (Foundation.NSObjectFlag t);
public CIConvolutionRGB3X3 (IntPtr handle);
// properties
public float Bias { get; set; }
public virtual CIImage OutputImage { get; }
public CIVector Weights { get; set; }
}
public class CIConvolutionRGB5X5 : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIConvolutionRGB5X5 ();
public CIConvolutionRGB5X5 (Foundation.NSCoder coder);
protected CIConvolutionRGB5X5 (Foundation.NSObjectFlag t);
public CIConvolutionRGB5X5 (IntPtr handle);
// properties
public float Bias { get; set; }
public virtual CIImage OutputImage { get; }
public CIVector Weights { get; set; }
}
public class CIConvolutionRGB7X7 : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIConvolutionRGB7X7 ();
public CIConvolutionRGB7X7 (Foundation.NSCoder coder);
protected CIConvolutionRGB7X7 (Foundation.NSObjectFlag t);
public CIConvolutionRGB7X7 (IntPtr handle);
// properties
public float Bias { get; set; }
public virtual CIImage OutputImage { get; }
public CIVector Weights { get; set; }
}
public class CIConvolutionRGB9Horizontal : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIConvolutionRGB9Horizontal ();
public CIConvolutionRGB9Horizontal (Foundation.NSCoder coder);
protected CIConvolutionRGB9Horizontal (Foundation.NSObjectFlag t);
public CIConvolutionRGB9Horizontal (IntPtr handle);
// properties
public float Bias { get; set; }
public virtual CIImage OutputImage { get; }
public CIVector Weights { get; set; }
}
public class CIConvolutionRGB9Vertical : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIConvolutionRGB9Vertical ();
public CIConvolutionRGB9Vertical (Foundation.NSCoder coder);
protected CIConvolutionRGB9Vertical (Foundation.NSObjectFlag t);
public CIConvolutionRGB9Vertical (IntPtr handle);
// properties
public float Bias { get; set; }
public virtual CIImage OutputImage { get; }
public CIVector Weights { get; set; }
}
public class CILinearLightBlendMode : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CILinearLightBlendMode ();
public CILinearLightBlendMode (Foundation.NSCoder coder);
protected CILinearLightBlendMode (Foundation.NSObjectFlag t);
public CILinearLightBlendMode (IntPtr handle);
// properties
public CIImage BackgroundImage { get; set; }
public virtual CIImage OutputImage { get; }
}
public class CIPersonSegmentation : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIPersonSegmentation ();
public CIPersonSegmentation (Foundation.NSCoder coder);
protected CIPersonSegmentation (Foundation.NSObjectFlag t);
public CIPersonSegmentation (IntPtr handle);
// properties
public virtual CIImage OutputImage { get; }
public int QualityLevel { get; set; }
}
public class CIVividLightBlendMode : CoreImage.CIFilter, ICIFilterProtocol, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public CIVividLightBlendMode ();
public CIVividLightBlendMode (Foundation.NSCoder coder);
protected CIVividLightBlendMode (Foundation.NSObjectFlag t);
public CIVividLightBlendMode (IntPtr handle);
// properties
public CIImage BackgroundImage { get; set; }
public virtual CIImage OutputImage { get; }
}
Added properties:
public static Foundation.NSString NetworkBonjourServiceType { get; }
public static Foundation.NSString NetworkNotificationContactsDidChange { get; }
public static Foundation.NSString NetworkNotificationSessionDidChange { get; }
Obsoleted constructors:
[Obsolete ("Always throws 'NotSupportedException' (not a public API).")]
public MidiCISession (uint entity, System.Action handler);
public class MidiNetworkConnection : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
protected MidiNetworkConnection (Foundation.NSObjectFlag t);
protected MidiNetworkConnection (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual MidiNetworkHost Host { get; }
// methods
public static MidiNetworkConnection FromHost (MidiNetworkHost host);
}
public class MidiNetworkHost : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
protected MidiNetworkHost (Foundation.NSObjectFlag t);
protected MidiNetworkHost (IntPtr handle);
// properties
public virtual string Address { get; }
public override IntPtr ClassHandle { get; }
public virtual string Name { get; }
public virtual string NetServiceDomain { get; }
public virtual string NetServiceName { get; }
public virtual nint Port { get; }
// methods
public static MidiNetworkHost Create (string hostName, Foundation.NSNetService netService);
public static MidiNetworkHost Create (string hostName, string netServiceName, string netServiceDomain);
public static MidiNetworkHost Create (string hostName, string address, nint port);
public virtual bool HasSameAddressAs (MidiNetworkHost other);
}
public class MidiNetworkSession : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
protected MidiNetworkSession (Foundation.NSObjectFlag t);
protected MidiNetworkSession (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual MidiNetworkConnectionPolicy ConnectionPolicy { get; set; }
public virtual Foundation.NSSet Connections { get; }
public virtual Foundation.NSSet Contacts { get; }
public static MidiNetworkSession DefaultSession { get; }
public MidiEndpoint DestinationEndPoint { get; }
public virtual bool Enabled { get; set; }
public virtual string LocalName { get; }
public virtual string NetworkName { get; }
public virtual nint NetworkPort { get; }
public MidiEndpoint SourceEndpoint { get; }
// methods
public virtual bool AddConnection (MidiNetworkConnection connection);
public virtual bool AddContact (MidiNetworkHost contact);
public virtual bool RemoveConnection (MidiNetworkConnection connection);
public virtual bool RemoveContact (MidiNetworkHost contact);
}
Modified base type:
-System.Object
+CoreFoundation.NativeObject
Removed property:
public virtual IntPtr Handle { get; }
Removed methods:
public virtual void Dispose ();
protected virtual void Dispose (bool disposing);
protected override void ~CTRunDelegate ();
Added property:
public IntPtr Handle { get; }
public static class CVImageBufferAlphaChannelModeExtensions {
// methods
public static Foundation.NSString GetConstant (this CVImageBufferAlphaChannelMode self);
public static CVImageBufferAlphaChannelMode GetValue (Foundation.NSString constant);
}
Obsoleted methods:
[Obsolete ("Use of 'CFString.FromHandle' offers better performance.")]
public static string FromHandle (IntPtr usrhandle);
[Obsolete ("Use of 'CFString.FromHandle' offers better performance.")]
public static string FromHandle (IntPtr handle, bool owns);
Modified methods:
public bool OpenMaps (MKMapItem[] mapItems--- = NULL---, MKLaunchOptions launchOptions = NULL)
Modified fields:
-public const string SdkVersion = "11.3";
+public const string SdkVersion = "12.0";
-public const string Version = "7.10.0";
+public const string Version = "7.99.0";
Obsoleted fields:
[Obsolete ("Use 'MacCatalyst' instead.")]
UIKitForMac = 5,
Added method:
public static void ThrowException (IntPtr gchandle);
Added property:
public CoreGraphics.CGPoint[] QuadrilateralPoints { get; set; }
Added property:
public nfloat[] DashPattern { get; set; }
public static class HdrMetadataInsertionModeExtensions {
// methods
public static Foundation.NSString GetConstant (this HdrMetadataInsertionMode self);
public static HdrMetadataInsertionMode GetValue (Foundation.NSString constant);
}
Removed methods:
public virtual void CloseAllMediaPresentations ();
public virtual void PauseAllMediaPlayback (System.Action completionHandler);
public virtual System.Threading.Tasks.Task PauseAllMediaPlaybackAsync ();
public virtual void RequestMediaPlaybackState (System.Action<WKMediaPlaybackState> completionHandler);
public virtual System.Threading.Tasks.Task<WKMediaPlaybackState> RequestMediaPlaybackStateAsync ();
public virtual void ResumeAllMediaPlayback (System.Action completionHandler);
public virtual System.Threading.Tasks.Task ResumeAllMediaPlaybackAsync ();
public virtual void SuspendAllMediaPlayback (System.Action completionHandler);
public virtual System.Threading.Tasks.Task SuspendAllMediaPlaybackAsync ();