HKHealthStore.DeleteObjects Method

Definition

Overloads

Name Description
DeleteObjects(HKObject[], Action<Boolean,NSError>)
DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,UIntPtr,NSError>)

Deletes the objects that match the specified objectType and predicate from the store and runs a completion handler when it is finished.

DeleteObjects(HKObject[], Action<Boolean,NSError>)

[Foundation.Export("deleteObjects:withCompletion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void DeleteObjects(HealthKit.HKObject[] objects, Action<bool,Foundation.NSError> completion);
[<Foundation.Export("deleteObjects:withCompletion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DeleteObjects : HealthKit.HKObject[] * Action<bool, Foundation.NSError> -> unit
override this.DeleteObjects : HealthKit.HKObject[] * Action<bool, Foundation.NSError> -> unit

Parameters

objects
HKObject[]
completion
Action<Boolean,NSError>
Attributes

Applies to

DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,UIntPtr,NSError>)

Deletes the objects that match the specified objectType and predicate from the store and runs a completion handler when it is finished.

[Foundation.Export("deleteObjectsOfType:predicate:withCompletion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void DeleteObjects(HealthKit.HKObjectType objectType, Foundation.NSPredicate predicate, Action<bool,UIntPtr,Foundation.NSError> completion);
[<Foundation.Export("deleteObjectsOfType:predicate:withCompletion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, unativeint, Foundation.NSError> -> unit
override this.DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, unativeint, Foundation.NSError> -> unit

Parameters

objectType
HKObjectType
predicate
NSPredicate
completion

Action<Boolean,UIntPtr,NSError>

Action<Boolean,unativeint,NSError>

A handler to run when the operation completes.

Attributes

Applies to