Contents

HKQuantityType

A type that identifies samples that store numerical values.

Declaration

class HKQuantityType

Mentioned in

Overview

The HKQuantityType class is a concrete subclass of the HKObjectType class. To create a quantity type instance, use the object type’s quantityType(forIdentifier:) convenience method.

Use quantity types to:

  • Request permission to read or write matching quantity samples.

  • Create and share matching quantity samples.

  • Query for matching quantity samples.

Topics

Creating Quantity Types

Accessing Quantity Type Data

See Also

Related Documentation

Object type subclasses