DeleteMedicalResourcesRequest


@ExperimentalPersonalHealthRecordApi
public final class DeleteMedicalResourcesRequest


A class to delete MedicalResources with HealthConnectClient.deleteMedicalResources.

At least one of dataSourceIds and medicalResourceTypes must be non-empty.

This feature is dependent on the version of HealthConnect installed on the device. To check if it's available call HealthConnectFeatures.getFeatureStatus and pass FEATURE_PERSONAL_HEALTH_RECORD as an argument. An UnsupportedOperationException would be thrown if the feature is not available.

Summary

Public constructors

DeleteMedicalResourcesRequest(
    @NonNull Set<@NonNull String> dataSourceIds,
    @NonNull Set<@NonNull Integer> medicalResourceTypes
)

Public constructors

DeleteMedicalResourcesRequest

Added in 1.1.0-beta02
public DeleteMedicalResourcesRequest(
    @NonNull Set<@NonNull String> dataSourceIds,
    @NonNull Set<@NonNull Integer> medicalResourceTypes
)

Public methods

equals

public boolean equals(Object other)

getDataSourceIds

Added in 1.1.0-beta02
public final @NonNull Set<@NonNull StringgetDataSourceIds()

IDs of MedicalDataSources to delete MedicalResources from. This being empty is equivalent as if all MedicalDataSources are set.

getMedicalResourceTypes

Added in 1.1.0-beta02
public final @NonNull Set<@NonNull IntegergetMedicalResourceTypes()

MedicalResourceTypes of MedicalResources to delete. This being empty is equivalent as if all MedicalResourceTypes are set.

hashCode

public int hashCode()

toString

public @NonNull String toString()