Share via


HealthConnectManager.UpdateRecords Method

Definition

Updates records into the HealthConnect database.

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

Parameters

records
IList<Record>

list of records to be updated.

executor
IExecutor

Executor on which to invoke the callback.

callback
IOutcomeReceiver

Callback to receive result of performing this operation.

Attributes

Remarks

Updates records into the HealthConnect database. In case of an error or a permission failure the HealthConnect service, OutcomeReceiver#onError will be invoked with a HealthConnectException.

In case the input record to be updated does not exist in the database or the caller is not the owner of the record then HealthConnectException#ERROR_INVALID_ARGUMENT will be thrown.

Java documentation for android.health.connect.HealthConnectManager.updateRecords(java.util.List<android.health.connect.datatypes.Record>, 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