Class

HKSource

An object indicating the app or device that created a HealthKit sample

Overview

Sources include apps and devices that save data to the HealthKit store. Currently, HealthKit supports only the direct import of data from Bluetooth LE heart rate monitors. All other devices need a companion app to collect and save the data to HealthKit.

Topics

Getting the Current Source

class func `default`() -> HKSource

Returns a source object for the current app.

Getting Property Data

var bundleIdentifier: String

The source’s bundle identifier.

var name: String

The source’s name.

Relationships

Inherits From

See Also

Sources and Devices

class HKSourceRevision

An object indicating the source of a HealthKit sample.

class HKDevice

A device that generates data for HealthKit.

class HKSourceQuery

A query that returns a list of sources (apps and devices) that have saved matching queries to the HealthKit store.