getRequestStatusForAuthorization(toShare:read:completion:)
Indicates whether the system presents the user with a permission sheet if your app requests authorization for the provided types.
Declaration
func getRequestStatusForAuthorization(toShare typesToShare: Set<HKSampleType>, read typesToRead: Set<HKObjectType>, completion: @escaping @Sendable (HKAuthorizationRequestStatus, (any Error)?) -> Void)func statusForAuthorizationRequest(toShare typesToShare: Set<HKSampleType>, read typesToRead: Set<HKObjectType>) async throws -> HKAuthorizationRequestStatusDiscussion
When working with clinical types, users may need to reauthorize access when new data is added.
See Also
Accessing HealthKit
authorizationStatus(for:)HKAuthorizationStatusHKAuthorizationRequestStatusisHealthDataAvailable()supportsHealthRecords()requestAuthorization(toShare:read:completion:)requestAuthorization(toShare:read:)requestPerObjectReadAuthorization(for:predicate:completion:)handleAuthorizationForExtension(completion:)authorizationViewControllerPresenter