From 26503c309bb4339edf6b250e7eb1bf833ecea753 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 3 Aug 2023 15:56:33 +0200 Subject: [PATCH] [HealthKit] Add nullability attributes to HKSampleQueryResultsHandler. Fixes #18622. Fixes https://github.com/xamarin/xamarin-macios/issues/18622. --- src/healthkit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/healthkit.cs b/src/healthkit.cs index b4bd3f50c114..2f8088525736 100644 --- a/src/healthkit.cs +++ b/src/healthkit.cs @@ -1914,7 +1914,7 @@ interface HKSample { bool HasUndeterminedDuration { get; } } - delegate void HKSampleQueryResultsHandler (HKSampleQuery query, HKSample [] results, NSError error); + delegate void HKSampleQueryResultsHandler (HKSampleQuery query, [NullAllowed] HKSample [] results, [NullAllowed] NSError error); [iOS (8, 0)] [Mac (13, 0)]