Structure

HKCharacteristicTypeIdentifier

Used to define the identifiers that create characteristic type objects.

Overview

To create an HKCharacteristicType instance, pass a HKCharacteristicTypeIdentifier value to the characteristicType(forIdentifier:) method.

For the complete list of characteristic type identifiers, see Characteristic Types.

Topics

Characteristic Types

static let biologicalSex: HKCharacteristicTypeIdentifier

A characteristic type identifier for the user’s sex.

static let bloodType: HKCharacteristicTypeIdentifier

A characteristic type identifier for the user’s blood type.

static let dateOfBirth: HKCharacteristicTypeIdentifier

A characteristic type identifier for the user’s date of birth.

static let fitzpatrickSkinType: HKCharacteristicTypeIdentifier

A characteristic type identifier for the user’s skin type.

static let wheelchairUse: HKCharacteristicTypeIdentifier

A characteristic identifier for the user’s use of a wheelchair.

Initializers

init(rawValue: String)

Returns a newly initialized characteristic type identifier using the provided string.

Relationships

See Also

Creating Characteristic Types

class func characteristicType(forIdentifier: HKCharacteristicTypeIdentifier)

Returns the shared characteristic type for the provided identifier.