title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.WatchOS SDK API diff: 16.1.1 vs 16.2.1 |
List of API changes between Xamarin.WatchOS versions 16.1.1 and 16.2.1. |
spouliot |
sepoulio |
3/29/2023 |
article |
ead05b12-7179-eba8-5865-b76770e8e3fc |
xamarin |
Obsoleted properties:
[Obsolete ("Use 'AVMetadataFormat' enum values.")]
public static Foundation.NSString FormatHlsMetadata { get; }
[Obsolete ("Use 'AVMetadataFormat' enum values.")]
public static Foundation.NSString FormatID3Metadata { get; }
[Obsolete ("Use 'AVMetadataFormat' enum values.")]
public static Foundation.NSString FormatQuickTimeUserData { get; }
[Obsolete ("Use 'AVMetadataFormat' enum values.")]
public static Foundation.NSString FormatiTunesMetadata { get; }
[Obsolete ("Use 'AVMetadataFormat' enum values.")]
public static Foundation.NSString KFormatISOUserData { get; }
Obsoleted properties:
[Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")]
public static Foundation.NSString WaitingDuringInterstitialEventReason { get; }
[Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")]
public static Foundation.NSString WaitingToMinimizeStallsReason { get; }
[Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")]
public static Foundation.NSString WaitingWhileEvaluatingBufferingRateReason { get; }
[Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")]
public static Foundation.NSString WaitingWithNoItemToPlayReason { get; }
Obsoleted properties:
[Obsolete ("Use 'CBConnectPeripheralOptions' instead.")]
public static Foundation.NSString OptionNotifyOnConnectionKey { get; }
[Obsolete ("Use 'CBConnectPeripheralOptions' instead.")]
public static Foundation.NSString OptionNotifyOnDisconnectionKey { get; }
[Obsolete ("Use 'CBConnectPeripheralOptions' instead.")]
public static Foundation.NSString OptionNotifyOnNotificationKey { get; }
Added properties:
public System.Net.IPEndPoint Address { get; }
public System.Net.IPEndPoint RemoteAddress { get; }
Added method:
public void Invalidate ();
Added properties:
public string LatitudeRef { get; set; }
public string LongitudeRef { get; set; }
Obsoleted methods:
[Obsolete ("Use 'GetData' instead.")]
public NSData GetDataFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
[Obsolete ("Use 'GetData' instead.")]
public virtual NSData GetDataFromRange (NSRange range, NSDictionary attributes, ref NSError error);
[Obsolete ("Use 'GetFileWrapper' instead.")]
public NSFileWrapper GetFileWrapperFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
[Obsolete ("Use 'GetFileWrapper' instead.")]
public virtual NSFileWrapper GetFileWrapperFromRange (NSRange range, NSDictionary attributes, ref NSError error);
Added methods:
public NSData GetData (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSData GetData (NSRange range, NSDictionary options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSDictionary options, out NSError error);
Obsoleted properties:
[Obsolete ("Use the 'AllBundles' property instead.")]
public static NSBundle[] _AllBundles { get; }
Added property:
public static NSBundle[] AllBundles { get; }
Added methods:
public NSProgress LoadObject<T> (System.Action<T,Foundation.NSError> completionHandler);
public System.Threading.Tasks.Task<T> LoadObjectAsync<T> ();
public System.Threading.Tasks.Task<T> LoadObjectAsync<T> (out NSProgress result);
Added value:
None = 0,
Added constructors:
public NSOperatingSystemVersion (nint major);
public NSOperatingSystemVersion (nint major, nint minor);
Added interfaces:
System.IComparable
System.IEquatable<NSOperatingSystemVersion>
Added methods:
public int CompareTo (NSOperatingSystemVersion otherVersion);
public virtual int CompareTo (object obj);
public virtual bool Equals (NSOperatingSystemVersion other);
public override bool Equals (object obj);
public override int GetHashCode ();
public static bool op_Equality (NSOperatingSystemVersion os1, NSOperatingSystemVersion os2);
public static bool op_Inequality (NSOperatingSystemVersion os1, NSOperatingSystemVersion os2);
Obsoleted properties:
[Obsolete ("Use the 'NSRunLoopMode' enum instead.")]
public static NSString NSDefaultRunLoopMode { get; }
[Obsolete ("Use the 'NSRunLoopMode' enum instead.")]
public static NSString NSRunLoopCommonModes { get; }
Added property:
public virtual CoreMedia.CMVideoDimensions CMVideoDimensionsValue { get; }
Added method:
public static NSValue FromCMVideoDimensions (CoreMedia.CMVideoDimensions value);
Added values:
AnswerCall = 26,
HangUpCall = 27,
Obsoleted methods:
[Obsolete ("Use the 'GetPathRadioType' property instead.")]
public NWInterfaceRadioType get_path_radio_type (uint pathIndex);
Added method:
public NWInterfaceRadioType GetPathRadioType (uint pathIndex);
Added interface:
System.IDisposable
Added property:
public object Context { get; }
Added method:
public virtual void Dispose ();
Modified fields:
-public const string Version = "16.1.1";
+public const string Version = "16.2.1";
Obsoleted properties:
[Obsolete ("Use 'SearchModeKey' instead.")]
public static Foundation.NSString OptionSearchModeKey { get; }
Obsoleted properties:
[Obsolete ("This property will be ignored in .NET 8.")]
public bool BypassBackgroundSessionCheck { get; set; }
Obsoleted properties:
[Obsolete ("Use the 'XHeight' property instead.")]
public virtual nfloat xHeight { get; }
Added property:
public virtual nfloat XHeight { get; }
public static class UIFontWeightConstants {
// properties
public static nfloat Black { get; }
public static nfloat Bold { get; }
public static nfloat Heavy { get; }
public static nfloat Light { get; }
public static nfloat Medium { get; }
public static nfloat Regular { get; }
public static nfloat Semibold { get; }
public static nfloat Thin { get; }
public static nfloat UltraLight { get; }
}
public static class UIFontWeightExtensions {
// methods
public static nfloat GetWeight (this UIFontWeight weight);
}