DeleteMedicalResourcesRequest


@ExperimentalPersonalHealthRecordApi
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(
    dataSourceIds: Set<String>,
    medicalResourceTypes: Set<Int>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public constructors

DeleteMedicalResourcesRequest

Added in 1.1.0-beta02
DeleteMedicalResourcesRequest(
    dataSourceIds: Set<String> = emptySet<String>(),
    medicalResourceTypes: Set<Int> = emptySet<Int>()
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

dataSourceIds

Added in 1.1.0-beta02
val dataSourceIdsSet<String>

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

medicalResourceTypes

Added in 1.1.0-beta02
val medicalResourceTypesSet<Int>

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