Contents

applicationShouldRequestHealthAuthorization(_:)

Tells the delegate when your app should ask the user for access to his or her HealthKit data.

Declaration

optional func applicationShouldRequestHealthAuthorization(_ application: UIApplication)

Parameters

  • application:

    Your singleton app object.

Discussion

In your implementation of this method, call the handleAuthorizationForExtension(completion:) method of the HKHealthStore object.