Editar

Compartilhar via


UIApplicationDelegate.ShouldRequestHealthAuthorization(UIApplication) Method

Definition

The system calls this method when the developer's app should ask the user for access to HealthKit data.

[Foundation.Export("applicationShouldRequestHealthAuthorization:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ShouldRequestHealthAuthorization (UIKit.UIApplication application);
abstract member ShouldRequestHealthAuthorization : UIKit.UIApplication -> unit
override this.ShouldRequestHealthAuthorization : UIKit.UIApplication -> unit

Parameters

application
UIApplication
Attributes

Remarks

When overriding this method, developers should call HandleAuthorizationForExtension(Action<Boolean,NSError>).

Applies to