HKHealthStore.GetRequestStatusForAuthorizationToShareAsync Method

Definition

Queries the the authorization request status of the specified types.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<HealthKit.HKAuthorizationRequestStatus> GetRequestStatusForAuthorizationToShareAsync(Foundation.NSSet<HealthKit.HKSampleType> typesToShare, Foundation.NSSet<HealthKit.HKObjectType> typesToRead);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetRequestStatusForAuthorizationToShareAsync : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> -> System.Threading.Tasks.Task<HealthKit.HKAuthorizationRequestStatus>
override this.GetRequestStatusForAuthorizationToShareAsync : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> -> System.Threading.Tasks.Task<HealthKit.HKAuthorizationRequestStatus>

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.

Returns

A task that contains the value that communicates whether the app needs to request user permission.

Attributes

Applies to