Share via


HKHealthStore.SaveObjectAsync(HKObject) Method

Definition

Asynchronously saves obj.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> SaveObjectAsync(HealthKit.HKObject obj);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SaveObjectAsync : HealthKit.HKObject -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.SaveObjectAsync : HealthKit.HKObject -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

obj
HKObject

Returns

A task that represents the asynchronous SaveObject operation. The value of the TResult parameter is of type System.Action<System.Boolean,Foundation.NSError>.

Attributes

Applies to