Edit

Share via


HKHealthStore.GetRequestStatusForAuthorizationToShare Method

Definition

Passes the request status, which communicates whether the app needs to request user permission, to completion.

[Foundation.Export("getRequestStatusForAuthorizationToShareTypes:readTypes:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void GetRequestStatusForAuthorizationToShare (Foundation.NSSet<HealthKit.HKSampleType> typesToShare, Foundation.NSSet<HealthKit.HKObjectType> typesToRead, HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler completion);
abstract member GetRequestStatusForAuthorizationToShare : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> * HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler -> unit
override this.GetRequestStatusForAuthorizationToShare : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> * HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler -> unit

Parameters

typesToShare
NSSet<HKSampleType>

The types for which to request share authorization status.

typesToRead
NSSet<HKObjectType>

The types for which to request read authorization status.

completion
HKHealthStoreGetRequestStatusForAuthorizationToShareHandler

A handler to run when the operation completes.

Attributes

Applies to