One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKUserAnnotatedMedicationQueryDescriptor

struct · iOS 26.0+ · SDK 27.1

struct HKUserAnnotatedMedicationQueryDescriptor

Members (6)

get · iOS 26.0+

limit

TypeScript
get limit(): (number) | null
Swift declaration
var limit: Int?

The maximum number of resulting HKUserAnnotatedMedication objects.

set · iOS 26.0+

limit

TypeScript
set limit(value: (number) | null)
Swift declaration
var limit: Int?

The maximum number of resulting HKUserAnnotatedMedication objects.

method · iOS 26.0+

result

TypeScript
result(healthStore: HKHealthStore): Promise<Array<HKUserAnnotatedMedication>>
Swift declaration
func result(for healthStore: HKHealthStore) async throws -> [HKUserAnnotatedMedication]

Returns the user annotated medications given the query descriptor configuration. Returns the empty array if no HKUserAnnotatedMedication objects match.

init · iOS 26.0+

init

TypeScript
static init(predicate?: (_Foundation_NSPredicate) | null, limit?: (number) | null): HKUserAnnotatedMedicationQueryDescriptor
Swift declaration
init(predicate: NSPredicate? = nil, limit: Int? = nil)
get · iOS 26.0+

predicate

TypeScript
get predicate(): (_Foundation_NSPredicate) | null
Swift declaration
var predicate: NSPredicate?

The predicate that matches the desired HKUserAnnotatedMedication objects.

set · iOS 26.0+

predicate

TypeScript
set predicate(value: (_Foundation_NSPredicate) | null)
Swift declaration
var predicate: NSPredicate?

The predicate that matches the desired HKUserAnnotatedMedication objects.

Skipped declarations

No declarations were skipped in this snapshot.

All HealthKit types →