Edit

Share via


HKHealthStore.DeleteObjects Method

Definition

Overloads

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

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

DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,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>)

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

[Foundation.Export("deleteObjects:withCompletion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DeleteObjects (HealthKit.HKObject[] objects, Action<bool,Foundation.NSError> completion);
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>

A handler to run when the operation completes.

Attributes

Applies to

DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,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.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DeleteObjects (HealthKit.HKObjectType objectType, Foundation.NSPredicate predicate, Action<bool,nuint,Foundation.NSError> completion);
abstract member DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, nuint, Foundation.NSError> -> unit
override this.DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, nuint, Foundation.NSError> -> unit

Parameters

objectType
HKObjectType
predicate
NSPredicate
completion

Action<Boolean,System.System.UIntPtr,NSError>

Action<Boolean,System.unativeint,NSError>

A handler to run when the operation completes.

Attributes

Applies to