One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKVisionPrescription

class · iOS 16.0+ · SDK 27.1

class HKVisionPrescription

Members (4)

init · iOS 16.0+

init

TypeScript
static init(type: HKVisionPrescriptionType, dateIssued: globalThis.Date, expirationDate?: (globalThis.Date) | null, device?: (HKDevice) | null, metadata?: (Record<string, unknown>) | null): HKVisionPrescription
Swift declaration
convenience init(type: HKVisionPrescriptionType, dateIssued: Date, expirationDate: Date?, device: HKDevice?, metadata: [String : Any]?)
get · iOS 16.0+

dateIssued

TypeScript
get dateIssued(): globalThis.Date
Swift declaration
var dateIssued: Date { get }
get · iOS 16.0+

expirationDate

TypeScript
get expirationDate(): (globalThis.Date) | null
Swift declaration
var expirationDate: Date? { get }
get · iOS 16.0+

prescriptionType

TypeScript
get prescriptionType(): HKVisionPrescriptionType
Swift declaration
var prescriptionType: HKVisionPrescriptionType { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKVisionPrescription.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All HealthKit types →