Instance Method


Reads the user’s blood type from the HealthKit store.


func bloodType() throws -> HKBloodTypeObject



On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing information about the error. Specify nil for this parameter if you do not want to receive error information.

Return Value

A blood type object that contains information about the user’s blood type.


If the user has not specified a blood type or if the user has denied your app permission to read the blood type, this method returns an notSet value.


Possible Values

class HKBloodTypeObject

This class acts as a wrapper for the HKBloodType enumeration.

enum HKBloodType

Constants indicating the user’s blood type.

See Also

Reading Characteristic Data

func biologicalSex()

Reads the user’s biological sex from the HealthKit store.

func dateOfBirth()

Reads the user’s date of birth from the HealthKit store.

func dateOfBirthComponents()

Reads the user’s date of birth from the HealthKit store.

func fitzpatrickSkinType()

Reads the user’s Fitzpatrick Skin Type from the HealthKit store.

func wheelchairUse()

Reads the user’s wheelchair use from the HealthKit store.