HealthConnectManager.DeleteMedicalDataSourceWithData 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.
Deletes a MedicalDataSource
and all data linked to it.
[Android.Runtime.Register("deleteMedicalDataSourceWithData", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteMedicalDataSourceWithData_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public virtual void DeleteMedicalDataSourceWithData(string id, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("deleteMedicalDataSourceWithData", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetDeleteMedicalDataSourceWithData_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member DeleteMedicalDataSourceWithData : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.DeleteMedicalDataSourceWithData : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- id
- String
The id of the data source 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 MedicalDataSource
and all data linked to it.
If the provided data source id
is either invalid, or does not exist, or owned by another apps, the caller will receive an exception with code HealthConnectException#ERROR_INVALID_ARGUMENT
via callback.onError()
.
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.