previous-api-comparison/ios-api-diff.md (original) (raw)

title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.iOS SDK API diff: 17.1.0 vs 17.3.0 List of API changes between Xamarin.iOS versions 17.1.0 and 17.3.0. spouliot sepoulio 1/11/2024 article d06af673-5477-8987-461b-f94fa0904907 xamarin

Xamarin.iOS SDK API diff: 17.1.0 vs 17.3.0

Xamarin.iOS.dll

Namespace AVFoundation

Type Changed: AVFoundation.AVAudioSession

Added properties:

public static Foundation.NSString RenderingCapabilitiesChangeNotification { get; } public virtual AVAudioSessionRenderingMode RenderingMode { get; } public static Foundation.NSString RenderingModeChangeNotification { get; } public virtual AVAudioChannelLayout[] SupportedOutputChannelLayouts { get; }

Type Changed: AVFoundation.AVAudioSession.Notifications

Added methods:

public static Foundation.NSObject ObserveRenderingCapabilitiesChange (System.EventHandler<Foundation.NSNotificationEventArgs> handler); public static Foundation.NSObject ObserveRenderingCapabilitiesChange (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler); public static Foundation.NSObject ObserveRenderingModeChange (System.EventHandler handler); public static Foundation.NSObject ObserveRenderingModeChange (Foundation.NSObject objectToObserve, System.EventHandler handler);

New Type: AVFoundation.AVAudioSessionRenderingMode

[Serializable] public enum AVAudioSessionRenderingMode { DolbyAtmos = 5, DolbyAudio = 4, MonoStereo = 1, NotApplicable = 0, SpatialAudio = 3, Surround = 2, }

New Type: AVFoundation.RenderingModeChangeNotificationEventArgs

public class RenderingModeChangeNotificationEventArgs : Foundation.NSNotificationEventArgs { // constructors public RenderingModeChangeNotificationEventArgs (Foundation.NSNotification notification); // properties public AVAudioSessionRenderingMode NewRenderingMode { get; } }

Namespace CloudKit

Type Changed: CloudKit.CKSyncEngineDidFetchChangesEvent

Added property:

public virtual CKSyncEngineFetchChangesContext Context { get; }

Type Changed: CloudKit.CKSyncEngineFetchChangesScope

Added method:

public virtual bool Contains (CKRecordZoneID zoneId);

Type Changed: CloudKit.CKSyncEngineWillFetchChangesEvent

Added property:

public virtual CKSyncEngineFetchChangesContext Context { get; }

Namespace CoreLocation

Type Changed: CoreLocation.CLMonitoringState

Added value:

Namespace CoreVideo

Type Changed: CoreVideo.CVImageBuffer

Added properties:

public static Foundation.NSString LogTransferFunctionAppleLogKey { get; } public static Foundation.NSString LogTransferFunctionKey { get; }

Type Changed: CoreVideo.CVPixelBufferPool

Added properties:

public static Foundation.NSString LogTransferFunctionAppleLogKey { get; } public static Foundation.NSString LogTransferFunctionKey { get; }

Namespace GameKit

Type Changed: GameKit.GKError

Added values:

ICloudUnavailable = 35, LockdownMode = 36,

Type Changed: GameKit.GKMatch

Added properties:

public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> PlayerProperties { get; } public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; }

Type Changed: GameKit.GKMatchRequest

Added properties:

public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; set; } public virtual string QueueName { get; set; } public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> RecipientProperties { get; set; }

Type Changed: GameKit.GKMatchmaker

Added methods:

public virtual void FindMatchedPlayers (GKMatchRequest request, System.Action<GKMatchedPlayers,Foundation.NSError> completionHandler); public virtual System.Threading.Tasks.Task FindMatchedPlayersAsync (GKMatchRequest request); public virtual void QueryQueueActivity (string queueName, System.Action<System.nint,Foundation.NSError> completionHandler); public virtual System.Threading.Tasks.Task QueryQueueActivityAsync (string queueName);

Type Changed: GameKit.GKMatchmakerViewControllerDelegate

Added method:

public virtual void GetMatchProperties (GKMatchmakerViewController viewController, GKPlayer recipient, System.Action<Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> completionHandler);

Type Changed: GameKit.GKMatchmakerViewControllerDelegate_Extensions

Added method:

public static void GetMatchProperties (this IGKMatchmakerViewControllerDelegate This, GKMatchmakerViewController viewController, GKPlayer recipient, System.Action<Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> completionHandler);

New Type: GameKit.GKMatchedPlayers

public class GKMatchedPlayers : Foundation.NSObject { // constructors public GKMatchedPlayers (); protected GKMatchedPlayers (Foundation.NSObjectFlag t); protected GKMatchedPlayers (IntPtr handle); // properties public override IntPtr ClassHandle { get; } public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> PlayerProperties { get; } public virtual GKPlayer[] Players { get; } public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; } }

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string SdkVersion = "17.0"; +public const string SdkVersion = "17.2"; -public const string Version = "17.1.0"; +public const string Version = "17.3.0";

Namespace PassKit

Type Changed: PassKit.PKIdentityElement

Added properties:

public static PKIdentityElement DocumentDhsComplianceStatusElement { get; } public static PKIdentityElement SexElement { get; }

Namespace PushToTalk

Type Changed: PushToTalk.PTChannelManagerDelegate

Added method:

public virtual void IncomingServiceUpdatePush (PTChannelManager channelManager, Foundation.NSUuid channelUuid, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> pushPayload, bool isHighPriority, nint remainingHighPriorityBudget, System.Action completion);

Type Changed: PushToTalk.PTChannelManagerDelegate_Extensions

Added method:

public static void IncomingServiceUpdatePush (this IPTChannelManagerDelegate This, PTChannelManager channelManager, Foundation.NSUuid channelUuid, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> pushPayload, bool isHighPriority, nint remainingHighPriorityBudget, System.Action completion);

Namespace Speech

Type Changed: Speech.SFAnalysisContextTag

Obsoleted properties:

[Obsolete ("This API has been removed from the framework.")] public static Foundation.NSString LeftContext { get; } [Obsolete ("This API has been removed from the framework.")] public static Foundation.NSString RightContext { get; } [Obsolete ("This API has been removed from the framework.")] public static Foundation.NSString SelectedText { get; }

Removed Type Speech.SFAnalysisContextTagEnum

Removed Type Speech.SFAnalysisContextTagEnumExtensions