HKHealthStore.GetRequestStatusForAuthorizationToShare 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.
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.
A handler to run when the operation completes.
- Attributes