Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created August 24, 2024 09:56
Show Gist options
  • Save vs-mobiletools-engineering-service2/6b605b3d1e1e7e77a4e9225d3248e239 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/6b605b3d1e1e7e77a4e9225d3248e239 to your computer and use it in GitHub Desktop.
previous-api-comparison/tvos-api-diff.md
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.TVOS SDK API diff
List of API changes for Xamarin.TVOS.
spouliot
sepoulio
8/24/2024
article
339efc10-9446-71fc-ae7d-055f0909caaf
xamarin

Xamarin.TVOS SDK API diff

Namespace CoreGraphics

Type Changed: CoreGraphics.CGColorSpace

Added method:

public CGColorSpace CopyBaseColorSpace ();

Type Changed: CoreGraphics.CGColorSpaceNames

Added property:

public static Foundation.NSString CoreMedia709 { get; }

Type Changed: CoreGraphics.CGContext

Added methods:

public bool DrawImageApplyingToneMapping (CGRect rect, CGImage image, CGToneMapping method, CGToneMappingOptions options);
public bool DrawImageApplyingToneMapping (CGRect rect, CGImage image, CGToneMapping method, Foundation.NSDictionary options);
public float GetEdrTargetHeadroom ();
public bool SetEdrTargetHeadroom (float value);

Type Changed: CoreGraphics.CGContextPDF

Added methods:

public void SetIdTree (CGPDFDictionary idTreeDictionary);
public void SetPageTagStructureTree (Foundation.NSDictionary pageTagStructureTreeDictionary);
public void SetParentTree (CGPDFDictionary parentTreeDictionary);

Type Changed: CoreGraphics.CGImage

Added constructor:

public CGImage (float headroom, int width, int height, int bitsPerComponent, int bitsPerPixel, int bytesPerRow, CGColorSpace colorSpace, CGBitmapFlags bitmapFlags, CGDataProvider provider, nfloat[] decode, bool shouldInterpolate, CGColorRenderingIntent intent);

Added properties:

public bool ContainsImageSpecificToneMappingMetadata { get; }
public float ContentHeadroom { get; }
public static float DefaultHdrImageContentHeadroom { get; }
public bool ShouldToneMap { get; }

Added method:

public CGImage Copy (float headroom);

Type Changed: CoreGraphics.CGPdfTagType

Added value:

Object = 800,

New Type: CoreGraphics.CGToneMapping

[Serializable]
public enum CGToneMapping {
	Default = 0,
	ExrGamma = 4,
	ImageSpecificLumaScaling = 1,
	IturRecommended = 3,
	None = 5,
	ReferenceWhiteBased = 2,
}

New Type: CoreGraphics.CGToneMappingOptionKeys

public class CGToneMappingOptionKeys {
	// constructors
	public CGToneMappingOptionKeys ();
}

New Type: CoreGraphics.CGToneMappingOptions

public class CGToneMappingOptions : Foundation.DictionaryContainer {
	// constructors
	public CGToneMappingOptions ();
	public CGToneMappingOptions (Foundation.NSDictionary dictionary);
	// properties
	public float? ExrToneMappingGammaDefog { get; set; }
	public float? ExrToneMappingGammaExposure { get; set; }
	public float? ExrToneMappingGammaKneeHigh { get; set; }
	public float? ExrToneMappingGammaKneeLow { get; set; }
	public bool? SkipBoostToHdr { get; set; }
	public bool? Use100nitsHlgOotf { get; set; }
	public bool? UseBT1886ForCoreVideoGamma { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment