diff --git a/src/healthkit.cs b/src/healthkit.cs
index 9ed4196da20d..8f17dea2e02b 100644
--- a/src/healthkit.cs
+++ b/src/healthkit.cs
@@ -206,6 +206,19 @@ public enum HKGad7AssessmentAnswer : long {
NearlyEveryDay,
}
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [Native]
+ public enum HKAudiogramConductionType : long {
+ Air = 0,
+ }
+
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [Native]
+ public enum HKAudiogramSensitivityTestSide : long {
+ Left = 0,
+ Right = 1,
+ }
+
#if NET
/// The completion handler for .
/// Completion handler for anchored object queries.
@@ -4540,16 +4553,38 @@ interface HKAudiogramSensitivityPoint : NSSecureCoding {
[Export ("frequency", ArgumentSemantic.Copy)]
HKQuantity Frequency { get; }
+ [Deprecated (PlatformName.iOS, 18, 1)]
+ [Deprecated (PlatformName.MacCatalyst, 18, 1)]
+ [Deprecated (PlatformName.MacOSX, 15, 1)]
+ [Deprecated (PlatformName.WatchOS, 11, 1)]
[NullAllowed, Export ("leftEarSensitivity", ArgumentSemantic.Copy)]
HKQuantity LeftEarSensitivity { get; }
+ [Deprecated (PlatformName.iOS, 18, 1)]
+ [Deprecated (PlatformName.MacCatalyst, 18, 1)]
+ [Deprecated (PlatformName.MacOSX, 15, 1)]
+ [Deprecated (PlatformName.WatchOS, 11, 1)]
[NullAllowed, Export ("rightEarSensitivity", ArgumentSemantic.Copy)]
HKQuantity RightEarSensitivity { get; }
+ [Deprecated (PlatformName.iOS, 18, 1, message: "Use the 'HKAudiogramSensitivityTest' overload instead.")]
+ [Deprecated (PlatformName.MacCatalyst, 18, 1, message: "Use the 'HKAudiogramSensitivityTest' overload instead.")]
+ [Deprecated (PlatformName.MacOSX, 15, 1, message: "Use the 'HKAudiogramSensitivityTest' overload instead.")]
+ [Deprecated (PlatformName.WatchOS, 11, 1, message: "Use the 'HKAudiogramSensitivityTest' overload instead.")]
[Static]
[Export ("sensitivityPointWithFrequency:leftEarSensitivity:rightEarSensitivity:error:")]
[return: NullAllowed]
HKAudiogramSensitivityPoint GetSensitivityPoint (HKQuantity frequency, [NullAllowed] HKQuantity leftEarSensitivity, [NullAllowed] HKQuantity rightEarSensitivity, [NullAllowed] out NSError error);
+
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [Static]
+ [Export ("sensitivityPointWithFrequency:tests:error:")]
+ [return: NullAllowed]
+ HKAudiogramSensitivityPoint GetSensitivityPoint (HKQuantity frequency, HKAudiogramSensitivityTest [] tests, [NullAllowed] out NSError error);
+
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [Export ("tests", ArgumentSemantic.Copy)]
+ HKAudiogramSensitivityTest [] Tests { get; }
}
[Watch (6, 0), iOS (13, 0), Mac (13, 0)]
@@ -4560,9 +4595,18 @@ interface HKAudiogramSample {
[Export ("sensitivityPoints", ArgumentSemantic.Copy)]
HKAudiogramSensitivityPoint [] SensitivityPoints { get; }
+ [Deprecated (PlatformName.iOS, 18, 1, message: "Use the 'HKDevice' overload instead.")]
+ [Deprecated (PlatformName.MacCatalyst, 18, 1, message: "Use the 'HKDevice' overload instead.")]
+ [Deprecated (PlatformName.MacOSX, 15, 1, message: "Use the 'HKDevice' overload instead.")]
+ [Deprecated (PlatformName.WatchOS, 11, 1, message: "Use the 'HKDevice' overload instead.")]
[Static]
[Export ("audiogramSampleWithSensitivityPoints:startDate:endDate:metadata:")]
HKAudiogramSample GetAudiogramSample (HKAudiogramSensitivityPoint [] sensitivityPoints, NSDate startDate, NSDate endDate, [NullAllowed] NSDictionary metadata);
+
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [Static]
+ [Export ("audiogramSampleWithSensitivityPoints:startDate:endDate:device:metadata:")]
+ HKAudiogramSample GetAudiogramSample (HKAudiogramSensitivityPoint [] sensitivityPoints, NSDate startDate, NSDate endDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata);
}
[Watch (6, 0), iOS (13, 0), Mac (13, 0)]
@@ -5326,4 +5370,45 @@ public enum HKAppleSleepingBreathingDisturbancesClassification : long {
Elevated,
}
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [BaseType (typeof (NSObject))]
+ [DisableDefaultCtor]
+ interface HKAudiogramSensitivityPointClampingRange : NSSecureCoding, NSCopying {
+
+ [NullAllowed, Export ("lowerBound", ArgumentSemantic.Copy)]
+ HKQuantity LowerBound { get; }
+
+ [NullAllowed, Export ("upperBound", ArgumentSemantic.Copy)]
+ HKQuantity UpperBound { get; }
+
+ [Static]
+ [Export ("clampingRangeWithLowerBound:upperBound:error:")]
+ [return: NullAllowed]
+ HKAudiogramSensitivityPointClampingRange Create ([NullAllowed][BindAs (typeof (double?))] NSNumber lowerBound, [NullAllowed][BindAs (typeof (double?))] NSNumber upperBound, [NullAllowed] out NSError error);
+ }
+
+ [Watch (11, 1), MacCatalyst (18, 1), Mac (15, 1), iOS (18, 1)]
+ [BaseType (typeof (NSObject))]
+ [DisableDefaultCtor]
+ interface HKAudiogramSensitivityTest : NSSecureCoding, NSCopying {
+
+ [Export ("sensitivity", ArgumentSemantic.Copy)]
+ HKQuantity Sensitivity { get; }
+
+ [Export ("type", ArgumentSemantic.Assign)]
+ HKAudiogramConductionType Type { get; }
+
+ [Export ("masked")]
+ bool Masked { get; }
+
+ [Export ("side", ArgumentSemantic.Assign)]
+ HKAudiogramSensitivityTestSide Side { get; }
+
+ [NullAllowed, Export ("clampingRange", ArgumentSemantic.Copy)]
+ HKAudiogramSensitivityPointClampingRange ClampingRange { get; }
+
+ [Export ("initWithSensitivity:type:masked:side:clampingRange:error:")]
+ NativeHandle Constructor (HKQuantity sensitivity, HKAudiogramConductionType type, bool masked, HKAudiogramSensitivityTestSide side, [NullAllowed] HKAudiogramSensitivityPointClampingRange clampingRange, [NullAllowed] out NSError error);
+ }
+
}
diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt
index 59344b7f2d74..a4f7925d00af 100644
--- a/tests/cecil-tests/Documentation.KnownFailures.txt
+++ b/tests/cecil-tests/Documentation.KnownFailures.txt
@@ -10870,6 +10870,9 @@ F:HealthKit.HKAppleSleepingBreathingDisturbancesClassification.NotElevated
F:HealthKit.HKAppleWalkingSteadinessClassification.Low
F:HealthKit.HKAppleWalkingSteadinessClassification.Ok
F:HealthKit.HKAppleWalkingSteadinessClassification.VeryLow
+F:HealthKit.HKAudiogramConductionType.Air
+F:HealthKit.HKAudiogramSensitivityTestSide.Left
+F:HealthKit.HKAudiogramSensitivityTestSide.Right
F:HealthKit.HKAuthorizationRequestStatus.ShouldRequest
F:HealthKit.HKAuthorizationRequestStatus.Unknown
F:HealthKit.HKAuthorizationRequestStatus.Unnecessary
@@ -37737,7 +37740,15 @@ M:HealthKit.HKAttachmentStore.GetAttachmentsAsync(HealthKit.HKObject)
M:HealthKit.HKAttachmentStore.GetDataAsync(HealthKit.HKAttachment,Foundation.NSProgress@)
M:HealthKit.HKAttachmentStore.GetDataAsync(HealthKit.HKAttachment)
M:HealthKit.HKAttachmentStore.RemoveAttachmentAsync(HealthKit.HKAttachment,HealthKit.HKObject)
+M:HealthKit.HKAudiogramSample.GetAudiogramSample(HealthKit.HKAudiogramSensitivityPoint[],Foundation.NSDate,Foundation.NSDate,HealthKit.HKDevice,Foundation.NSDictionary{Foundation.NSString,Foundation.NSObject})
M:HealthKit.HKAudiogramSensitivityPoint.EncodeTo(Foundation.NSCoder)
+M:HealthKit.HKAudiogramSensitivityPoint.GetSensitivityPoint(HealthKit.HKQuantity,HealthKit.HKAudiogramSensitivityTest[],Foundation.NSError@)
+M:HealthKit.HKAudiogramSensitivityPointClampingRange.Copy(Foundation.NSZone)
+M:HealthKit.HKAudiogramSensitivityPointClampingRange.Create(System.Nullable{System.Double},System.Nullable{System.Double},Foundation.NSError@)
+M:HealthKit.HKAudiogramSensitivityPointClampingRange.EncodeTo(Foundation.NSCoder)
+M:HealthKit.HKAudiogramSensitivityTest.#ctor(HealthKit.HKQuantity,HealthKit.HKAudiogramConductionType,System.Boolean,HealthKit.HKAudiogramSensitivityTestSide,HealthKit.HKAudiogramSensitivityPointClampingRange,Foundation.NSError@)
+M:HealthKit.HKAudiogramSensitivityTest.Copy(Foundation.NSZone)
+M:HealthKit.HKAudiogramSensitivityTest.EncodeTo(Foundation.NSCoder)
M:HealthKit.HKBiologicalSexObject.Copy(Foundation.NSZone)
M:HealthKit.HKBiologicalSexObject.EncodeTo(Foundation.NSCoder)
M:HealthKit.HKBloodTypeObject.Copy(Foundation.NSZone)
@@ -68917,6 +68928,14 @@ P:GLKit.GLKViewController.TimeSinceLastUpdate
P:GLKit.GLKViewController.WeakDelegate
P:GLKit.GLKViewDrawEventArgs.Rect
P:HealthKit.HKActivitySummary.Paused
+P:HealthKit.HKAudiogramSensitivityPoint.Tests
+P:HealthKit.HKAudiogramSensitivityPointClampingRange.LowerBound
+P:HealthKit.HKAudiogramSensitivityPointClampingRange.UpperBound
+P:HealthKit.HKAudiogramSensitivityTest.ClampingRange
+P:HealthKit.HKAudiogramSensitivityTest.Masked
+P:HealthKit.HKAudiogramSensitivityTest.Sensitivity
+P:HealthKit.HKAudiogramSensitivityTest.Side
+P:HealthKit.HKAudiogramSensitivityTest.Type
P:HealthKit.HKDeletedObject.Metadata
P:HealthKit.HKDetailedCdaErrors.ValidationError
P:HealthKit.HKDevicePropertyKey.FirmwareVersion
@@ -83794,6 +83813,10 @@ T:HealthKit.HKAppleWalkingSteadinessClassification
T:HealthKit.HKAttachmentStoreCompletionHandler
T:HealthKit.HKAttachmentStoreDataHandler
T:HealthKit.HKAttachmentStoreGetAttachmentCompletionHandler
+T:HealthKit.HKAudiogramConductionType
+T:HealthKit.HKAudiogramSensitivityPointClampingRange
+T:HealthKit.HKAudiogramSensitivityTest
+T:HealthKit.HKAudiogramSensitivityTestSide
T:HealthKit.HKCategoryValueAppetiteChanges
T:HealthKit.HKCategoryValueAppleWalkingSteadinessEvent
T:HealthKit.HKCategoryValueAudioExposureEvent
diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.todo
deleted file mode 100644
index 151890b0201c..000000000000
--- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.todo
+++ /dev/null
@@ -1,16 +0,0 @@
-!missing-enum! HKAudiogramConductionType not bound
-!missing-enum! HKAudiogramSensitivityTestSide not bound
-!missing-selector! +HKAudiogramSample::audiogramSampleWithSensitivityPoints:startDate:endDate:device:metadata: not bound
-!missing-selector! +HKAudiogramSensitivityPoint::sensitivityPointWithFrequency:tests:error: not bound
-!missing-selector! +HKAudiogramSensitivityPointClampingRange::clampingRangeWithLowerBound:upperBound:error: not bound
-!missing-selector! HKAudiogramSensitivityPoint::tests not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::lowerBound not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::upperBound not bound
-!missing-selector! HKAudiogramSensitivityTest::clampingRange not bound
-!missing-selector! HKAudiogramSensitivityTest::initWithSensitivity:type:masked:side:clampingRange:error: not bound
-!missing-selector! HKAudiogramSensitivityTest::masked not bound
-!missing-selector! HKAudiogramSensitivityTest::sensitivity not bound
-!missing-selector! HKAudiogramSensitivityTest::side not bound
-!missing-selector! HKAudiogramSensitivityTest::type not bound
-!missing-type! HKAudiogramSensitivityPointClampingRange not bound
-!missing-type! HKAudiogramSensitivityTest not bound
diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo
deleted file mode 100644
index e8d1a930da7a..000000000000
--- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo
+++ /dev/null
@@ -1,18 +0,0 @@
-!deprecated-attribute-missing! HKAudiogramSensitivityPoint::leftEarSensitivity missing a [Deprecated] attribute
-!deprecated-attribute-missing! HKAudiogramSensitivityPoint::rightEarSensitivity missing a [Deprecated] attribute
-!missing-enum! HKAudiogramConductionType not bound
-!missing-enum! HKAudiogramSensitivityTestSide not bound
-!missing-selector! +HKAudiogramSample::audiogramSampleWithSensitivityPoints:startDate:endDate:device:metadata: not bound
-!missing-selector! +HKAudiogramSensitivityPoint::sensitivityPointWithFrequency:tests:error: not bound
-!missing-selector! +HKAudiogramSensitivityPointClampingRange::clampingRangeWithLowerBound:upperBound:error: not bound
-!missing-selector! HKAudiogramSensitivityPoint::tests not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::lowerBound not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::upperBound not bound
-!missing-selector! HKAudiogramSensitivityTest::clampingRange not bound
-!missing-selector! HKAudiogramSensitivityTest::initWithSensitivity:type:masked:side:clampingRange:error: not bound
-!missing-selector! HKAudiogramSensitivityTest::masked not bound
-!missing-selector! HKAudiogramSensitivityTest::sensitivity not bound
-!missing-selector! HKAudiogramSensitivityTest::side not bound
-!missing-selector! HKAudiogramSensitivityTest::type not bound
-!missing-type! HKAudiogramSensitivityPointClampingRange not bound
-!missing-type! HKAudiogramSensitivityTest not bound
diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo
deleted file mode 100644
index 151890b0201c..000000000000
--- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo
+++ /dev/null
@@ -1,16 +0,0 @@
-!missing-enum! HKAudiogramConductionType not bound
-!missing-enum! HKAudiogramSensitivityTestSide not bound
-!missing-selector! +HKAudiogramSample::audiogramSampleWithSensitivityPoints:startDate:endDate:device:metadata: not bound
-!missing-selector! +HKAudiogramSensitivityPoint::sensitivityPointWithFrequency:tests:error: not bound
-!missing-selector! +HKAudiogramSensitivityPointClampingRange::clampingRangeWithLowerBound:upperBound:error: not bound
-!missing-selector! HKAudiogramSensitivityPoint::tests not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::lowerBound not bound
-!missing-selector! HKAudiogramSensitivityPointClampingRange::upperBound not bound
-!missing-selector! HKAudiogramSensitivityTest::clampingRange not bound
-!missing-selector! HKAudiogramSensitivityTest::initWithSensitivity:type:masked:side:clampingRange:error: not bound
-!missing-selector! HKAudiogramSensitivityTest::masked not bound
-!missing-selector! HKAudiogramSensitivityTest::sensitivity not bound
-!missing-selector! HKAudiogramSensitivityTest::side not bound
-!missing-selector! HKAudiogramSensitivityTest::type not bound
-!missing-type! HKAudiogramSensitivityPointClampingRange not bound
-!missing-type! HKAudiogramSensitivityTest not bound