GetMedicalDataSourcesRequest


@ExperimentalPersonalHealthRecordApi
class GetMedicalDataSourcesRequest


Request to read medical data sources using HealthConnectManager#getMedicalDataSources

If no package names are set in a request, all data sources from all packages will be returned. Otherwise the response is limited to the requested package names per permission enforced in HealthConnectClient.getMedicalDataSources

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

Public functions

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

Public properties

List<String>

Only MedicalDataSources created by the apps with these package names will be returned.

Public constructors

GetMedicalDataSourcesRequest

Added in 1.1.0-beta02
GetMedicalDataSourcesRequest(packageNames: List<String>)

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

packageNames

Added in 1.1.0-beta02
val packageNamesList<String>

Only MedicalDataSources created by the apps with these package names will be returned.