title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.WatchOS SDK API diff: 14.14.2 vs 14.17.1 |
List of API changes between Xamarin.WatchOS versions 14.14.2 and 14.17.1. |
spouliot |
sepoulio |
4/10/2021 |
article |
ee4ba3b1-9e22-1c35-25b9-9960105857b3 |
xamarin |
Added property:
public virtual bool PrefersNoInterruptionsFromSystemAlerts { get; }
Added method:
public virtual bool SetPrefersNoInterruptionsFromSystemAlerts (bool inValue, out Foundation.NSError outError);
Added value:
OverrideMutedMicrophoneInterruption = 128,
Added property:
public AVAudioSessionInterruptionReason Reason { get; }
Added properties:
public virtual AVContentKey ContentKey { get; }
public virtual AVContentKeySpecifier ContentKeySpecifier { get; }
Added property:
public static Foundation.NSString WaitingDuringInterstitialEventReason { get; }
Added property:
public virtual AVVariantPreferences VariantPreferences { get; set; }
Added property:
public virtual bool HasSufficientMediaDataForReliablePlaybackStart { get; }
Added property:
public virtual bool DelaysRateChangeUntilHasSufficientMediaData { get; set; }
Added method:
public virtual void SetRate (float rate, CoreMedia.CMTime time, CoreMedia.CMTime hostTime);
[Serializable]
public enum AVAudioSessionInterruptionReason {
AppWasSuspended = 1,
BuiltInMicMuted = 2,
Default = 0,
}
public class AVContentKey : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public AVContentKey ();
protected AVContentKey (Foundation.NSObjectFlag t);
protected AVContentKey (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual AVContentKeySpecifier ContentKeySpecifier { get; }
}
public static class AVContentKeyRecipient_Extensions {
// methods
public static void DidProvideContentKey (this IAVContentKeyRecipient This, AVContentKeySession contentKeySession, AVContentKey contentKey);
}
public class AVContentKeySpecifier : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public AVContentKeySpecifier ();
protected AVContentKeySpecifier (Foundation.NSObjectFlag t);
protected AVContentKeySpecifier (IntPtr handle);
public AVContentKeySpecifier (AVContentKeySystem keySystem, Foundation.NSObject contentKeyIdentifier, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> options);
// properties
public override IntPtr ClassHandle { get; }
public virtual Foundation.NSObject Identifier { get; }
public virtual AVContentKeySystem KeySystem { get; }
public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Options { get; }
// methods
public static AVContentKeySpecifier GetContentKeySpecifier (AVContentKeySystem keySystem, Foundation.NSObject contentKeyIdentifier, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> options);
}
public class AVPlayerInterstitialEvent : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
protected AVPlayerInterstitialEvent (Foundation.NSObjectFlag t);
protected AVPlayerInterstitialEvent (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual Foundation.NSDate Date { get; }
public virtual AVPlayerItem[] InterstitialTemplateItems { get; }
public virtual AVPlayerItem PrimaryItem { get; }
public virtual AVPlayerInterstitialEventRestrictions Restrictions { get; }
public virtual CoreMedia.CMTime ResumptionOffset { get; }
public virtual AVPlayerItem[] TemplateItems { get; }
public virtual CoreMedia.CMTime Time { get; }
// methods
protected override void Dispose (bool disposing);
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);
}
public class AVPlayerInterstitialEventController : AVFoundation.AVPlayerInterstitialEventObserver, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public AVPlayerInterstitialEventController (AVPlayer primaryPlayer);
protected AVPlayerInterstitialEventController (Foundation.NSObjectFlag t);
protected AVPlayerInterstitialEventController (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual AVPlayerInterstitialEvent[] Events { get; set; }
public virtual AVPlayerInterstitialEvent[] InterstitialEvents { get; set; }
// methods
public virtual void CancelCurrentEvent (CoreMedia.CMTime resumptionOffset);
public static AVPlayerInterstitialEventController GetInterstitialEventController (AVPlayer primaryPlayer);
public static AVPlayerInterstitialEventController GetPlayerInterstitialEventController (AVPlayer primaryPlayer);
}
public class AVPlayerInterstitialEventObserver : Foundation.NSObject, Foundation.INSObjectProtocol, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public AVPlayerInterstitialEventObserver (AVPlayer primaryPlayer);
protected AVPlayerInterstitialEventObserver (Foundation.NSObjectFlag t);
protected AVPlayerInterstitialEventObserver (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
public virtual AVPlayerInterstitialEvent CurrentEvent { get; }
public static Foundation.NSString CurrentEventDidChangeNotification { get; }
public virtual AVPlayerInterstitialEvent[] Events { get; }
public static Foundation.NSString EventsDidChangeNotification { get; }
public virtual AVPlayerInterstitialEvent[] InterstitialEvents { get; }
public virtual AVQueuePlayer InterstitialPlayer { get; }
public virtual AVPlayer PrimaryPlayer { get; }
// methods
protected override void Dispose (bool disposing);
public static AVPlayerInterstitialEventObserver GetInterstitialEventObserver (AVPlayer primaryPlayer);
public static AVPlayerInterstitialEventObserver GetPlayerInterstitialEventObserver (AVPlayer primaryPlayer);
// inner types
public static class Notifications {
// methods
public static Foundation.NSObject ObserveCurrentEventDidChange (System.EventHandler<Foundation.NSNotificationEventArgs> handler);
public static Foundation.NSObject ObserveCurrentEventDidChange (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler);
public static Foundation.NSObject ObserveEventsDidChange (System.EventHandler<Foundation.NSNotificationEventArgs> handler);
public static Foundation.NSObject ObserveEventsDidChange (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler);
}
}
[Serializable]
[Flags]
public enum AVPlayerInterstitialEventRestrictions {
ConstrainsSeekingForwardInPrimaryContent = 1,
DefaultPolicy = 0,
None = 0,
RequiresPlaybackAtPreferredRateForAdvancement = 4,
}
public static class AVQueuedSampleBufferRendering_Extensions {
// methods
public static bool GetHasSufficientMediaDataForReliablePlaybackStart (this IAVQueuedSampleBufferRendering This);
}
[Serializable]
[Flags]
public enum AVVariantPreferences {
None = 0,
ScalabilityToLosslessAudio = 1,
}
Added value:
DolbyVisionHevc = 1685481521,
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; }
Added properties:
public static NSString MultipleUnderlyingErrorsKey { get; }
public virtual NSError[] UnderlyingErrors { get; }
Added property:
public virtual bool AssumesHttp3Capable { get; set; }
Added property:
public static NSString FileOperationKindUploading { get; }
Added property:
public static NSString UbiquitousItemIsExcludedFromSyncKey { get; }
Added property:
public virtual bool AssumesHttp3Capable { get; set; }
Added property:
public virtual bool PrefersIncrementalDelivery { get; set; }
Added values:
FriendListDenied = 102,
FriendListDescriptionMissing = 100,
FriendListRestricted = 101,
Added methods:
public virtual void LoadFriendsAuthorizationStatus (System.Action<GKFriendsAuthorizationStatus,Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<GKFriendsAuthorizationStatus> LoadFriendsAuthorizationStatusAsync ();
public virtual void LoadFriendsList (System.Action<GKPlayer[],Foundation.NSError> completionHandler);
public virtual void LoadFriendsList (string[] identifiers, System.Action<GKPlayer[],Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<GKPlayer[]> LoadFriendsListAsync ();
public virtual System.Threading.Tasks.Task<GKPlayer[]> LoadFriendsListAsync (string[] identifiers);
[Serializable]
public enum GKFriendsAuthorizationStatus {
Authorized = 3,
Denied = 2,
NotDetermined = 0,
Restricted = 1,
}
Added value:
AppleMoveTime = 90,
Added property:
public virtual double AspectRatio { get; }
Added property:
public static Foundation.NSString PNGTransparency { get; }
Added constructors:
public INCallRecord (string identifier, Foundation.NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, double? callDuration, bool? unseen);
public INCallRecord (string identifier, Foundation.NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, double? callDuration, bool? unseen, int? numberOfCalls);
public INCallRecord (string identifier, Foundation.NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, double? callDuration, bool? unseen, INPerson[] participants, int? numberOfCalls, bool? isCallerIdBlocked);
Added properties:
public virtual bool? IsCallerIdBlocked { get; }
public virtual INPerson[] Participants { get; }
Added value:
My = 2,
public class INCallGroup : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSObjectProtocol, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable, System.IEquatable<Foundation.NSObject> {
// constructors
public INCallGroup (Foundation.NSCoder coder);
protected INCallGroup (Foundation.NSObjectFlag t);
protected INCallGroup (IntPtr handle);
public INCallGroup (string groupName, string groupId);
// properties
public override IntPtr ClassHandle { get; }
public virtual string GroupId { get; }
public virtual string GroupName { get; }
// methods
public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);
}
Modified methods:
public bool OpenMaps (MKMapItem[] mapItems--- = NULL---, MKLaunchOptions launchOptions = NULL)
Added property:
public static Foundation.NSString IsPreorderProperty { get; }
Modified fields:
-public const string SdkVersion = "7.2";
+public const string SdkVersion = "7.4";
-public const string Version = "14.14.2";
+public const string Version = "14.17.1";
Obsoleted fields:
[Obsolete ("Use 'MacCatalyst' instead.")]
UIKitForMac = 5,
Added property:
public static Foundation.NSString Mir { get; }
Added property:
public virtual bool Blocked { get; }
[Serializable]
[Flags]
public enum PKRadioTechnology {
Bluetooth = 2,
Nfc = 1,
None = 0,
}
Added value:
OverlayPresentedInBackgroundScene = 20,