HealthConnectManager.UpdateRecords Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
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.