SDK Reference v2.0.0 / DeviceDataNamespace

DeviceDataNamespace

struct DeviceDataNamespace : RawRepresentable, Equatable, Hashable, Codable

Device data is grouped into namespaces, which represent the source frameworks that generate the data. There is also a separate project namespace, where projects can persist their own data. The static members of DeviceDataNamespace identify all supported namespace values.


RawValue
associatedtype RawValue
project
static let project: MyDataHelpsKit.DeviceDataNamespace

Project-specific device data.

fitbit
static let fitbit: MyDataHelpsKit.DeviceDataNamespace

Data imported from a linked Fitbit account.

appleHealth
static let appleHealth: MyDataHelpsKit.DeviceDataNamespace

Data imported from a linked Apple Health account.

googleFit
static let googleFit: MyDataHelpsKit.DeviceDataNamespace

Data imported from a linked Google Fit account.

airNowApi
static let airNowApi: MyDataHelpsKit.DeviceDataNamespace

Air quality index data imported from AirNow.gov.

weatherBit
static let weatherBit: MyDataHelpsKit.DeviceDataNamespace

Weather forecast data imported from WeatherBit.io.

omron
static let omron: MyDataHelpsKit.DeviceDataNamespace

Data imported from Omron wellness products.

rawValue
let rawValue: String

The raw value for the namespace as stored in MyDataHelps.

init(rawValue:)
init(rawValue: String)

Initializes a DeviceDataNamespace with an arbitrary value. Consider using static members such as DeviceDataNamespace.project instead for known values.

rawValue

The raw value for the namespace as stored in MyDataHelps.