Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created August 25, 2022 21:37
Show Gist options
  • Save vs-mobiletools-engineering-service2/2c8858b0ee5c242e46dbd3191ab90ea5 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/2c8858b0ee5c242e46dbd3191ab90ea5 to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.MacCatalyst.Ref/ref/net6.0/Microsoft.MacCatalyst.md

API diff: Microsoft.MacCatalyst.dll

Microsoft.MacCatalyst.dll

Namespace MetricKit

Type Changed: MetricKit.MXAppLaunchMetric

Added property:

public virtual MetricKit.MXHistogram<Foundation.NSUnitDuration> HistogrammedExtendedLaunch { get; }

Type Changed: MetricKit.MXDiagnosticPayload

Added property:

public virtual MXAppLaunchDiagnostic[] AppLaunchDiagnostics { get; }

Type Changed: MetricKit.MXMetricManager

Added methods:

public static bool ExtendLaunchMeasurement (string taskId, out Foundation.NSError error);
public static bool FinishExtendedLaunchMeasurement (string taskId, out Foundation.NSError error);

New Type: MetricKit.MXAppLaunchDiagnostic

public class MXAppLaunchDiagnostic : MetricKit.MXDiagnostic {
	// constructors
	public MXAppLaunchDiagnostic (Foundation.NSCoder coder);
	protected MXAppLaunchDiagnostic (Foundation.NSObjectFlag t);
	protected MXAppLaunchDiagnostic (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual MXCallStackTree CallStackTree { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSMeasurement<Foundation.NSUnitDuration> LaunchDuration { get; }
}

New Type: MetricKit.MXErrorCode

[Serializable]
public enum MXErrorCode {
	Duplicated = 3,
	InternalFailure = 5,
	InvalidId = 0,
	MaxCount = 1,
	PastDeadline = 2,
	Unknown = 4,
}

New Type: MetricKit.MXErrorCodeExtensions

public static class MXErrorCodeExtensions {
	// methods
	public static Foundation.NSString GetDomain (this MXErrorCode self);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment