HealthConnectManager.DeleteMedicalResources Method

Definition

Overloads

DeleteMedicalResources(DeleteMedicalResourcesRequest, IExecutor, IOutcomeReceiver)

Deletes MedicalResources based on given filters in DeleteMedicalResourcesRequest.

DeleteMedicalResources(IList<MedicalResourceId>, IExecutor, IOutcomeReceiver)

Deletes a list of MedicalResources by the provided list of MedicalResourceIds.

DeleteMedicalResources(DeleteMedicalResourcesRequest, IExecutor, IOutcomeReceiver)

Deletes MedicalResources based on given filters in DeleteMedicalResourcesRequest.

[Android.Runtime.Register("deleteMedicalResources", "(Landroid/health/connect/DeleteMedicalResourcesRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteMedicalResources_Landroid_health_connect_DeleteMedicalResourcesRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public virtual void DeleteMedicalResources(Android.Health.Connect.DeleteMedicalResourcesRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("deleteMedicalResources", "(Landroid/health/connect/DeleteMedicalResourcesRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteMedicalResources_Landroid_health_connect_DeleteMedicalResourcesRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member DeleteMedicalResources : Android.Health.Connect.DeleteMedicalResourcesRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.DeleteMedicalResources : Android.Health.Connect.DeleteMedicalResourcesRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

request
DeleteMedicalResourcesRequest

The delete request.

executor
IExecutor

Executor on which to invoke the callback.

callback
IOutcomeReceiver

Callback to receive result of performing this operation.

Attributes

Remarks

Deletes MedicalResources based on given filters in DeleteMedicalResourcesRequest.

Regarding permissions:

<ul> <li>Only apps with the system permission can delete data written by apps other than themselves. <li>Deletes are permitted in the foreground or background. </ul>

Java documentation for android.health.connect.HealthConnectManager.deleteMedicalResources(android.health.connect.DeleteMedicalResourcesRequest, 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

DeleteMedicalResources(IList<MedicalResourceId>, IExecutor, IOutcomeReceiver)

Deletes a list of MedicalResources by the provided list of MedicalResourceIds.

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

Parameters

ids
IList<MedicalResourceId>

The ids to delete.

executor
IExecutor

Executor on which to invoke the callback.

callback
IOutcomeReceiver

Callback to receive result of performing this operation.

Attributes

Remarks

Deletes a list of MedicalResources by the provided list of MedicalResourceIds.

<ul> <li>If any ID in ids is invalid, the API will throw an IllegalArgumentException, and nothing will be deleted. <li>If any ID in ids does not exist, that ID will be ignored, while deletion on other IDs will be performed. </ul>

Regarding permissions:

<ul> <li>Only apps with the system permission can delete data written by apps other than themselves. <li>Deletes are permitted in the foreground or background. </ul>

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