title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.TVOS SDK API diff: 16.1.1 vs 16.99.0 |
List of API changes between Xamarin.TVOS versions 16.1.1 and 16.99.0. |
spouliot |
sepoulio |
8/8/2023 |
article |
b353e0ef-f9b9-509e-5b7a-18dc8a0a92a5 |
xamarin |
Added method:
public virtual void GenerateCGImageAsynchronously (CoreMedia.CMTime requestedTime, AVAssetImageGenerateAsynchronouslyForTimeCompletionHandler handler);
Obsoleted properties:
[Obsolete ("Use the 'Inputs' property instead.")]
public virtual AVAssetWriterInput[] inputs { get; }
Added property:
public virtual AVAssetWriterInput[] Inputs { get; }
Obsoleted properties:
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategoryAmbient { get; }
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategoryMultiRoute { get; }
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategoryPlayAndRecord { get; }
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategoryPlayback { get; }
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategoryRecord { get; }
[Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
public static Foundation.NSString CategorySoloAmbient { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeDefault { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeGameChat { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeMeasurement { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeMoviePlayback { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeSpokenAudio { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeVideoChat { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeVideoRecording { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString ModeVoiceChat { get; }
[Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
public static Foundation.NSString VoicePrompt { get; }
Added methods:
public Foundation.NSError SetActive (bool active, AVAudioSessionSetActiveOptions options);
public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public Foundation.NSError SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionCategoryOptions options);
public Foundation.NSError SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionCategoryOptions options);
public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetMode (AVAudioSessionMode mode, out Foundation.NSError error);
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);
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 AVPlayerWaitingForCoordinatedPlaybackReason { get; }
[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; }
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 static class AVAudioSessionCategoryExtensions {
// methods
public static Foundation.NSString GetConstant (this AVAudioSessionCategory self);
public static AVAudioSessionCategory GetValue (Foundation.NSString constant);
}
[Serializable]
public enum AVAudioSessionMode {
Default = 0,
GameChat = 4,
Measurement = 3,
MoviePlayback = 5,
SpokenAudio = 7,
VideoChat = 6,
VideoRecording = 2,
VoiceChat = 1,
VoicePrompt = 8,
}
public static class AVAudioSessionModeExtensions {
// methods
public static Foundation.NSString GetConstant (this AVAudioSessionMode self);
public static AVAudioSessionMode GetValue (Foundation.NSString constant);
}
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);
}
public static class AXAnimatedImagesUtilities {
// properties
public static Foundation.NSString AnimatedImagesEnabledDidChangeNotification { get; }
public static bool Enabled { get; }
// inner types
public static class Notifications {
// methods
public static Foundation.NSObject ObserveAnimatedImagesEnabledDidChange (System.EventHandler<Foundation.NSNotificationEventArgs> handler);
public static Foundation.NSObject ObserveAnimatedImagesEnabledDidChange (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler);
}
}
public static class AXCustomContentProvider_Extensions {
// methods
public static System.Func<AXCustomContent[]> GetAccessibilityCustomContentHandler (this IAXCustomContentProvider This);
public static void SetAccessibilityCustomContentHandler (this IAXCustomContentProvider This, System.Func<AXCustomContent[]> value);
}
Obsoleted properties:
[Obsolete ("The name has been fixed, use 'AnimationDiscrete' instead.")]
public static Foundation.NSString AnimationDescrete { get; }
Obsoleted properties:
[Obsolete ("Use 'CAGradientLayerType.Axial' enum instead.")]
public static Foundation.NSString GradientLayerAxial { get; }
Added property:
public virtual Foundation.NSDictionary DeveloperHudProperties { get; set; }
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 string[] AllModes { get; }
public string CurrentMode { get; }
Added method:
public CFRunLoopExitReason RunInMode (string mode, double seconds, bool returnAfterSourceHandled);
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; }
Added property:
public bool Extrapolate { get; set; }
public class CIBlurredRectangleGenerator : CoreImage.CIFilter, ICIBlurredRectangleGeneratorProtocol, ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public CIBlurredRectangleGenerator ();
public CIBlurredRectangleGenerator (Foundation.NSCoder coder);
protected CIBlurredRectangleGenerator (Foundation.NSObjectFlag t);
protected CIBlurredRectangleGenerator (IntPtr handle);
// properties
public virtual CIColor Color { get; set; }
public virtual CoreGraphics.CGRect InputExtent { get; set; }
public virtual CIImage OutputImage { get; }
public virtual float Sigma { get; set; }
}
public class CICannyEdgeDetector : CoreImage.CIFilter, ICICannyEdgeDetectorProtocol, ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public CICannyEdgeDetector ();
public CICannyEdgeDetector (Foundation.NSCoder coder);
protected CICannyEdgeDetector (Foundation.NSObjectFlag t);
protected CICannyEdgeDetector (IntPtr handle);
// properties
public virtual float GaussianSigma { get; set; }
public virtual nint HysteresisPasses { get; set; }
public virtual CIImage InputImage { get; set; }
public virtual CIImage OutputImage { get; }
public virtual bool Perceptual { get; set; }
public virtual float ThresholdHigh { get; set; }
public virtual float ThresholdLow { get; set; }
}
public static class CIPhotoEffectProtocol_Extensions {
// methods
public static bool GetExtrapolate (this ICIPhotoEffectProtocol This);
public static void SetExtrapolate (this ICIPhotoEffectProtocol This, bool value);
}
public class CIRoundedRectangleStrokeGenerator : CoreImage.CIFilter, ICIFilterProtocol, ICIRoundedRectangleStrokeGeneratorProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public CIRoundedRectangleStrokeGenerator ();
public CIRoundedRectangleStrokeGenerator (Foundation.NSCoder coder);
protected CIRoundedRectangleStrokeGenerator (Foundation.NSObjectFlag t);
protected CIRoundedRectangleStrokeGenerator (IntPtr handle);
// properties
public virtual CIColor Color { get; set; }
public virtual CoreGraphics.CGRect InputExtent { get; set; }
public virtual CIImage OutputImage { get; }
public virtual float Radius { get; set; }
public virtual float Width { get; set; }
}
public class CISobelGradients : CoreImage.CIFilter, ICIFilterProtocol, ICISobelGradientsProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public CISobelGradients ();
public CISobelGradients (Foundation.NSCoder coder);
protected CISobelGradients (Foundation.NSObjectFlag t);
protected CISobelGradients (IntPtr handle);
// properties
public virtual CIImage InputImage { get; set; }
public virtual CIImage OutputImage { get; }
}
public interface ICIBlurredRectangleGeneratorProtocol : ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// properties
public virtual CIColor Color { get; set; }
public virtual CoreGraphics.CGRect InputExtent { get; set; }
public virtual float Sigma { get; set; }
}
public interface ICICannyEdgeDetectorProtocol : ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// properties
public virtual float GaussianSigma { get; set; }
public virtual nint HysteresisPasses { get; set; }
public virtual CIImage InputImage { get; set; }
public virtual bool Perceptual { get; set; }
public virtual float ThresholdHigh { get; set; }
public virtual float ThresholdLow { get; set; }
}
public interface ICIRoundedRectangleStrokeGeneratorProtocol : ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// properties
public virtual CIColor Color { get; set; }
public virtual CoreGraphics.CGRect InputExtent { get; set; }
public virtual float Radius { get; set; }
public virtual float Width { get; set; }
}
public interface ICISobelGradientsProtocol : ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
// properties
public virtual CIImage InputImage { 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; }
[Obsolete ("Use the 'NSRunLoopMode' enum instead.")]
public static NSString UITrackingRunLoopMode { get; }
Added properties:
public static NSString FileIdentifierKey { get; }
public static NSString VolumeMountFromLocationKey { get; }
public static NSString VolumeSubtypeKey { get; }
public static NSString VolumeTypeNameKey { get; }
Added methods:
public static NSUrl CreateFileUrl (string path);
public static NSUrl CreateFileUrl (string path, bool isDir);
Added property:
public virtual CoreMedia.CMVideoDimensions CMVideoDimensionsValue { get; }
Added method:
public static NSValue FromCMVideoDimensions (CoreMedia.CMVideoDimensions value);
Added constructor:
public HMTimerTrigger (string name, Foundation.NSDate fireDate, Foundation.NSDateComponents recurrence);
Added property:
public static Foundation.NSString OpenExrCompression { get; }
Added property:
public virtual bool Inspectable { get; set; }
Added method:
public static nfloat MKRoadWidthAtZoomScale (nfloat zoomScale);
Obsoleted methods:
[Obsolete ("Use 'MKOverlayRenderer.MKRoadWidthAtZoomScale' instead.")]
public static nfloat MKRoadWidthAtZoomScale (nfloat zoomScale);
public static class MAVideoAccommodations {
// properties
public static Foundation.NSString DimFlashingLightsChangedNotification { get; }
// methods
public static bool IsDimFlashingLightsEnabled ();
// inner types
public static class Notifications {
// methods
public static Foundation.NSObject ObserveDimFlashingLightsChanged (System.EventHandler<Foundation.NSNotificationEventArgs> handler);
public static Foundation.NSObject ObserveDimFlashingLightsChanged (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler);
}
}
Added methods:
public static void SetScissorRects (this IMTLRenderCommandEncoder This, MTLScissorRect[] scissorRects);
public static void SetTileBuffers (this IMTLRenderCommandEncoder This, IMTLBuffer[] buffers, nuint[] offsets, Foundation.NSRange range);
public static void SetTileSamplerStates (this IMTLRenderCommandEncoder This, IMTLSamplerState[] samplers, float[] lodMinClamps, float[] lodMaxClamps, Foundation.NSRange range);
public static void SetViewports (this IMTLRenderCommandEncoder This, MTLViewport[] viewports);
Modified properties:
-public bool? GenerateMipmaps { get; set; }
+public bool? GenerateMipmaps { get; }
Obsoleted methods:
[Obsolete ("Use the 'GetPathRadioType' property instead.")]
public NWInterfaceRadioType get_path_radio_type (uint pathIndex);
Added method:
public NWInterfaceRadioType GetPathRadioType (uint pathIndex);
Added value:
Datagram = 3,
Added interface:
System.IDisposable
Added property:
public object Context { get; }
Added method:
public virtual void Dispose ();
Modified fields:
-public const string SdkVersion = "16.1";
+public const string SdkVersion = "17.0";
-public const string Version = "16.1.1";
+public const string Version = "16.99.0";
Obsoleted properties:
[Obsolete ("Use the 'FirstObject' property instead.")]
public virtual Foundation.NSObject firstObject { get; }
Added property:
public virtual Foundation.NSObject FirstObject { get; }
Added interfaces:
Foundation.INSCopying
ObjCRuntime.INativeObject
System.IDisposable
Added method:
public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
Obsoleted properties:
[Obsolete ("Use 'SearchModeKey' instead.")]
public static Foundation.NSString OptionSearchModeKey { get; }
Modified methods:
-public SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orient, double sec)
+public SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orientToPath, double sec)
-public SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orient, nfloat speed)
+public SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orientToPath, nfloat speed)
Modified properties:
-public string AdNetworkSourceAppStoreIdentifier { get; set; }
+public string AdNetworkSourceAppStoreIdentifier { get; }
-public string AdNetworkVersion { get; set; }
+public string AdNetworkVersion { get; }
-public string ProductIdentifier { get; set; }
+public string ProductIdentifier { get; }
-public string ProviderToken { get; set; }
+public string ProviderToken { get; }
Obsoleted properties:
[Obsolete ("This property will be ignored in .NET 8.")]
public bool BypassBackgroundSessionCheck { get; set; }
Added constructors:
public NSTextList (string format);
public NSTextList (NSTextListMarkerFormats format);
Obsoleted properties:
[Obsolete ("Use 'CustomMarkerFormat' instead.")]
public virtual string MarkerFormat { get; }
Added property:
public string CustomMarkerFormat { get; }
Added value:
CustomString = -1,
Added value:
None = 0,
Added properties:
public virtual UILineBreakMode SubtitleLineBreakMode { get; set; }
public virtual UILineBreakMode TitleLineBreakMode { get; set; }
Obsoleted properties:
[Obsolete ("Use the 'MonochromeTint' property instead.")]
public static IntPtr _MonochromeTint { get; }
[Obsolete ("Use the 'PreferredTint' property instead.")]
public static IntPtr _PreferredTint { get; }
Obsoleted properties:
[Obsolete ("Use the 'XHeight' property instead.")]
public virtual nfloat xHeight { get; }
Added property:
public virtual nfloat XHeight { get; }
Added property:
public virtual bool Enabled { get; set; }
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);
}
Added property:
public virtual bool SignedOut { get; set; }