isHealthDataAvailable
TypeScriptstatic isHealthDataAvailable(): booleanSwift declarationclass func isHealthDataAvailable() -> Boolclass · iOS 8.0+ · SDK 27.1
class HKHealthStorestatic isHealthDataAvailable(): booleanSwift declarationclass func isHealthDataAvailable() -> BoolactivityMoveMode(): HKActivityMoveModeObjectSwift declarationfunc activityMoveMode() throws -> HKActivityMoveModeObjectadd(samples: Array<HKSample>, workout: HKWorkout, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addSamples(_ samples: [HKSample], to workout: HKWorkout) async throwsauthorizationStatus(type: HKObjectType): HKAuthorizationStatusSwift declarationfunc authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatusbiologicalSex(): HKBiologicalSexObjectSwift declarationfunc biologicalSex() throws -> HKBiologicalSexObjectbloodType(): HKBloodTypeObjectSwift declarationfunc bloodType() throws -> HKBloodTypeObjectdateOfBirthComponents(): _Foundation_DateComponentsSwift declarationfunc dateOfBirthComponents() throws -> DateComponentsdateOfBirth(): globalThis.DateSwift declarationfunc dateOfBirth() throws -> DatedeleteWithCompletion(object: HKObject, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc delete(_ object: HKObject) async throwsdeleteWithCompletion64175(objects: Array<HKObject>, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc delete(_ objects: [HKObject]) async throwsdeleteObjects(objectType: HKObjectType, predicate: _Foundation_NSPredicate, completion: ((arg0: boolean, arg1: number, arg2: (NativeError) | null) => void)): voidSwift declarationfunc deleteObjects(of objectType: HKObjectType, predicate: NSPredicate) async throws -> IntdisableAllBackgroundDelivery(completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc disableAllBackgroundDelivery() async throwsdisableBackgroundDelivery(type: HKObjectType, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc disableBackgroundDelivery(for type: HKObjectType) async throwsearliestPermittedSampleDate(): globalThis.DateSwift declarationfunc earliestPermittedSampleDate() -> DateenableBackgroundDelivery(type: HKObjectType, frequency: HKUpdateFrequency, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency) async throwsexecute(query: HKQuery): voidSwift declarationfunc execute(_ query: HKQuery)fitzpatrickSkinType(): HKFitzpatrickSkinTypeObjectSwift declarationfunc fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObjectgetEarliestAuthorizedSampleDate(types: Array<HKObjectType>, completion: ((arg0: (NativeMap<HKObjectType, globalThis.Date>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc getEarliestAuthorizedSampleDate(for types: Set<HKObjectType>, completion: @escaping @Sendable ([HKObjectType : Date]?, (any Error)?) -> Void)getRequestStatusForAuthorization(typesToShare: Array<HKSampleType>, typesToRead: Array<HKObjectType>, completion: ((arg0: HKAuthorizationRequestStatus, arg1: (NativeError) | null) => void)): voidSwift declarationfunc statusForAuthorizationRequest(toShare typesToShare: Set<HKSampleType>, read typesToRead: Set<HKObjectType>) async throws -> HKAuthorizationRequestStatushandleAuthorizationForExtension(completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc handleAuthorizationForExtension() async throwsstatic init(): HKHealthStoreSwift declarationinit()preferredUnits(quantityTypes: Array<HKQuantityType>, completion: ((arg0: NativeMap<HKQuantityType, HKUnit>, arg1: (NativeError) | null) => void)): voidSwift declarationfunc preferredUnits(for quantityTypes: Set<HKQuantityType>) async throws -> [HKQuantityType : HKUnit]recalibrateEstimates(sampleType: HKSampleType, date: globalThis.Date, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc recalibrateEstimates(sampleType: HKSampleType, date: Date) async throwsrecoverActiveWorkoutSession(completion: ((arg0: (HKWorkoutSession) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc recoverActiveWorkoutSession() async throws -> HKWorkoutSession?relateWorkoutEffortSample(sample: HKSample, workout: HKWorkout, activity: (HKWorkoutActivity) | null, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc relateWorkoutEffortSample(_ sample: HKSample, with workout: HKWorkout, activity: HKWorkoutActivity?) async throws -> BoolrequestAuthorizationToShareReadCompletion(typesToShare: (Array<HKSampleType>) | null, typesToRead: (Array<HKObjectType>) | null, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping @Sendable (Bool, (any Error)?) -> Void)requestPerObjectReadAuthorization(objectType: HKObjectType, predicate: (_Foundation_NSPredicate) | null, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc requestPerObjectReadAuthorization(for objectType: HKObjectType, predicate: NSPredicate?) async throwssaveWithCompletion(object: HKObject, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc save(_ object: HKObject) async throwssaveWithCompletion30981(objects: Array<HKObject>, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc save(_ objects: [HKObject]) async throwssplitTotalEnergy(totalEnergy: HKQuantity, startDate: globalThis.Date, endDate: globalThis.Date, resultsHandler: ((arg0: (HKQuantity) | null, arg1: (HKQuantity) | null, arg2: (NativeError) | null) => void)): voidSwift declarationfunc splitTotalEnergy(_ totalEnergy: HKQuantity, start startDate: Date, end endDate: Date, resultsHandler: @escaping @Sendable (HKQuantity?, HKQuantity?, (any Error)?) -> Void)startWatchApp(workoutConfiguration: HKWorkoutConfiguration, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc startWatchApp(toHandle workoutConfiguration: HKWorkoutConfiguration) async throwsstop(query: HKQuery): voidSwift declarationfunc stop(_ query: HKQuery)supportsHealthRecords(): booleanSwift declarationfunc supportsHealthRecords() -> BoolunrelateWorkoutEffortSample(sample: HKSample, workout: HKWorkout, activity: (HKWorkoutActivity) | null, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc unrelateWorkoutEffortSample(_ sample: HKSample, from workout: HKWorkout, activity: HKWorkoutActivity?) async throws -> BoolwheelchairUse(): HKWheelchairUseObjectSwift declarationfunc wheelchairUse() throws -> HKWheelchairUseObjectget workoutSessionMirroringStartHandler(): (((arg0: HKWorkoutSession) => Promise<void>)) | nullSwift declarationvar workoutSessionMirroringStartHandler: (@Sendable (HKWorkoutSession) -> Void)? { get set }set workoutSessionMirroringStartHandler(value: (((arg0: HKWorkoutSession) => void)) | null)Swift declarationvar workoutSessionMirroringStartHandler: (@Sendable (HKWorkoutSession) -> Void)? { get set }requestAuthorizationToShareRead(typesToShare: Array<HKSampleType>, typesToRead: Array<HKObjectType>): Promise<void>Swift declarationfunc requestAuthorization(toShare typesToShare: Set<HKSampleType>, read typesToRead: Set<HKObjectType>) async throwsearliestAuthorizedSampleDate(types: Array<HKObjectType>): Promise<NativeMap<HKObjectType, globalThis.Date>>Swift declarationfunc earliestAuthorizedSampleDate(for types: Set<HKObjectType>) async throws -> [HKObjectType : Date]preferredWorkoutZoneConfiguration(quantityType: HKQuantityType): Promise<(HKWorkoutZoneConfiguration) | null>Swift declarationfunc preferredWorkoutZoneConfiguration(for quantityType: HKQuantityType) async throws -> HKWorkoutZoneConfiguration?Returns the user's preferred workout zone configuration for the specified quantity type. - Parameter quantityType: The quantity type to retrieve the preferred zone configuration for. - Returns: The preferred zone configuration, or nil if none is set. - Throws: An error if the zone configuration cannot be retrieved.
No declarations were skipped in this snapshot.