Modifica

Condividi tramite


HKHealthStore.GetRequestStatusForAuthorizationToShareAsync Method

Definition

Queries the the authorization request status of the specified types.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<HealthKit.HKAuthorizationRequestStatus> GetRequestStatusForAuthorizationToShareAsync (Foundation.NSSet<HealthKit.HKSampleType> typesToShare, Foundation.NSSet<HealthKit.HKObjectType> typesToRead);
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