HKHealthStore.GetPreferredUnitsAsync(NSSet) 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.
Asynchronously calls completion
, passing in a NSDictionary of HKQuantityType->HKUnit.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.NSDictionary> GetPreferredUnitsAsync (Foundation.NSSet quantityTypes);
abstract member GetPreferredUnitsAsync : Foundation.NSSet -> System.Threading.Tasks.Task<Foundation.NSDictionary>
override this.GetPreferredUnitsAsync : Foundation.NSSet -> System.Threading.Tasks.Task<Foundation.NSDictionary>
Parameters
- quantityTypes
- NSSet
Returns
A task that represents the asynchronous GetPreferredUnits operation. The value of the TResult parameter is of type System.Action<Foundation.NSDictionary,Foundation.NSError>.
- Attributes
Remarks
The GetPreferredUnitsAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.