Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xcode16.1] Update HealthKit all the way to Xcode 16.1 RC #21510

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions src/healthkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// <summary>The completion handler for <see cref="M:HealthKit.HKAnchoredObjectQuery.#ctor(HealthKit.HKSampleType,Foundation.NSPredicate,System.nuint,System.nuint,HealthKit.HKAnchoredObjectResultHandler2)" />.</summary>
/// <summary>Completion handler for anchored object queries.</summary>
Expand Down Expand Up @@ -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)]
Expand All @@ -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<NSString, NSObject> 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<NSString, NSObject> metadata);
}

[Watch (6, 0), iOS (13, 0), Mac (13, 0)]
Expand Down Expand Up @@ -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);
}

}
23 changes: 23 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo

This file was deleted.

16 changes: 0 additions & 16 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo

This file was deleted.