HKHealthStore.GetRequestStatusForAuthorizationToShareAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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