HealthConnectManager.DeleteMedicalResources 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.
Overloads
DeleteMedicalResources(DeleteMedicalResourcesRequest, IExecutor, IOutcomeReceiver) |
Deletes |
DeleteMedicalResources(IList<MedicalResourceId>, IExecutor, IOutcomeReceiver) |
Deletes a list of |
DeleteMedicalResources(DeleteMedicalResourcesRequest, IExecutor, IOutcomeReceiver)
Deletes MedicalResource
s 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 MedicalResource
s 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>
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 MedicalResource
s by the provided list of MedicalResourceId
s.
[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 MedicalResource
s by the provided list of MedicalResourceId
s.
<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>
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.