Partager via


HealthConnectManager.DeleteRecords Method

Definition

Overloads

DeleteRecords(IList<RecordIdFilter>, IExecutor, IOutcomeReceiver)

Deletes records based on RecordIdFilter.

DeleteRecords(Class, ITimeRangeFilter, IExecutor, IOutcomeReceiver)

Deletes records based on the TimeRangeFilter.

DeleteRecords(IList<RecordIdFilter>, IExecutor, IOutcomeReceiver)

Deletes records based on RecordIdFilter.

[Android.Runtime.Register("deleteRecords", "(Ljava/util/List;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteRecords_Ljava_util_List_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
public virtual void DeleteRecords (System.Collections.Generic.IList<Android.Health.Connect.RecordIdFilter> recordIds, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("deleteRecords", "(Ljava/util/List;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteRecords_Ljava_util_List_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
abstract member DeleteRecords : System.Collections.Generic.IList<Android.Health.Connect.RecordIdFilter> * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.DeleteRecords : System.Collections.Generic.IList<Android.Health.Connect.RecordIdFilter> * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

recordIds
IList<RecordIdFilter>

recordIds on which to perform delete operation.

executor
IExecutor

Executor on which to invoke the callback.

callback
IOutcomeReceiver

Callback to receive result of performing this operation.

Attributes

Remarks

Deletes records based on RecordIdFilter.

Deletions are performed in a transaction i.e. either all will be deleted or none

Java documentation for android.health.connect.HealthConnectManager.deleteRecords(java.util.List<android.health.connect.RecordIdFilter>, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.health.connect.HealthConnectException>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DeleteRecords(Class, ITimeRangeFilter, IExecutor, IOutcomeReceiver)

Deletes records based on the TimeRangeFilter.

[Android.Runtime.Register("deleteRecords", "(Ljava/lang/Class;Landroid/health/connect/TimeRangeFilter;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteRecords_Ljava_lang_Class_Landroid_health_connect_TimeRangeFilter_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
public virtual void DeleteRecords (Java.Lang.Class recordType, Android.Health.Connect.ITimeRangeFilter timeRangeFilter, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("deleteRecords", "(Ljava/lang/Class;Landroid/health/connect/TimeRangeFilter;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteRecords_Ljava_lang_Class_Landroid_health_connect_TimeRangeFilter_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
abstract member DeleteRecords : Java.Lang.Class * Android.Health.Connect.ITimeRangeFilter * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.DeleteRecords : Java.Lang.Class * Android.Health.Connect.ITimeRangeFilter * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

recordType
Class

recordType to perform delete operation on.

timeRangeFilter
ITimeRangeFilter

time filter based on which to delete the records.

executor
IExecutor

Executor on which to invoke the callback.

callback
IOutcomeReceiver

Callback to receive result of performing this operation.

Attributes

Remarks

Deletes records based on the TimeRangeFilter.

Deletions are performed in a transaction i.e. either all will be deleted or none

Java documentation for android.health.connect.HealthConnectManager.deleteRecords(java.lang.Class<? extends android.health.connect.datatypes.Record>, android.health.connect.TimeRangeFilter, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.health.connect.HealthConnectException>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to