title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.Mac SDK API diff: 9.3.0 vs 9.4.0 |
List of API changes between Xamarin.Mac versions 9.3.0 and 9.4.0. |
spouliot |
sepoulio |
8/25/2023 |
article |
6aa47070-b41a-0c8a-4b51-0598e1bc1850 |
xamarin |
Added method:
public virtual void GenerateCGImageAsynchronously (CoreMedia.CMTime requestedTime, AVAssetImageGenerateAsynchronouslyForTimeCompletionHandler handler);
Obsoleted constructors:
[Obsolete ("Use the overload that takes a delegate that does not take a 'ref AudioBuffers' instead. Assigning a value to the 'inputData' parameter in the callback has no effect.")]
public AVAudioSinkNode (AVAudioSinkNodeReceiverHandler receiverHandler);
Added constructors:
public AVAudioSinkNode (AVAudioSinkNodeReceiverHandler2 receiverHandler);
public AVAudioSinkNode (AVAudioSinkNodeReceiverHandlerRaw receiverHandler);
public sealed delegate AVAssetImageGenerateAsynchronouslyForTimeCompletionHandler : System.MulticastDelegate {
// constructors
public AVAssetImageGenerateAsynchronouslyForTimeCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (CoreGraphics.CGImage imageRef, CoreMedia.CMTime actualTime, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (CoreGraphics.CGImage imageRef, CoreMedia.CMTime actualTime, Foundation.NSError error);
}
public sealed delegate AVAudioSinkNodeReceiverHandler2 : System.MulticastDelegate {
// constructors
public AVAudioSinkNodeReceiverHandler2 (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (AudioToolbox.AudioTimeStamp timestamp, uint frameCount, AudioToolbox.AudioBuffers inputData, System.AsyncCallback callback, object object);
public virtual int EndInvoke (System.IAsyncResult result);
public virtual int Invoke (AudioToolbox.AudioTimeStamp timestamp, uint frameCount, AudioToolbox.AudioBuffers inputData);
}
public sealed delegate AVAudioSinkNodeReceiverHandlerRaw : System.MulticastDelegate {
// constructors
public AVAudioSinkNodeReceiverHandlerRaw (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (IntPtr timestamp, uint frameCount, IntPtr inputData, System.AsyncCallback callback, object object);
public virtual int EndInvoke (System.IAsyncResult result);
public virtual int Invoke (IntPtr timestamp, uint frameCount, IntPtr inputData);
}
Added properties:
public string[] AllModes { get; }
public string CurrentMode { get; }
Added method:
public CFRunLoopExitReason RunInMode (string mode, double seconds, bool returnAfterSourceHandled);
Added method:
protected T GetStrongDictionary<T> (NSString key, System.Func<NSDictionary,T> createStrongDictionary);
Added methods:
public static bool GetSkipBackupAttribute (string filename);
public static bool GetSkipBackupAttribute (string filename, out NSError error);
public static NSError SetSkipBackupAttribute (string filename, bool skipBackup);
Added methods:
public virtual void GetFileProviderConnection (System.Action<NSXpcConnection,Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<NSXpcConnection> GetFileProviderConnectionAsync ();
Added methods:
public static NSUrl CreateFileUrl (string path);
public static NSUrl CreateFileUrl (string path, bool isDir);
Modified fields:
-public const string Version = "9.3.0";
+public const string Version = "9.4.0";
Added field:
public static const string ServiceManagementLibrary = "/System/Library/Frameworks/ServiceManagement.framework/ServiceManagement";
public class SMAppService : Foundation.NSObject {
// constructors
protected SMAppService (Foundation.NSObjectFlag t);
protected SMAppService (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public static SMAppService MainApp { get; }
public virtual SMAppServiceStatus Status { get; }
// methods
public static SMAppService CreateAgentService (string plistName);
public static SMAppService CreateDaemonService (string plistName);
public static SMAppService CreateLoginItemService (string identifier);
public static SMAppServiceStatus GetStatus (Foundation.NSUrl legacyUrl);
public static void OpenSystemSettingsLoginItems ();
public bool Register ();
public virtual bool Register (out Foundation.NSError error);
public bool Unregister ();
public virtual void Unregister (System.Action<Foundation.NSError> handler);
public virtual bool Unregister (out Foundation.NSError error);
public virtual System.Threading.Tasks.Task UnregisterAsync ();
}
[Serializable]
public enum SMAppServiceStatus {
Enabled = 1,
NotFound = 3,
NotRegistered = 0,
RequiresApproval = 2,
}