Is any sample or demo example for Electrocardiogram Health Data Point?

As per apple documentation I go through them, after surfing I didn't get any of the basic implementation for electrocardio gram steps:

  1. Request Permission.
  2. Reading the values for data points.
  3. Sample query.

Also need to understand, how this is different from HKCategoryTypeIdentifier/HKQuantityTypeIdentifier.

As in other heakthdata points the above identifier is used to formulate the data point accessing and reading and adding into our local storage.

Any sugesstion please.

See the documentation of HKElectrocardiogram and HKElectrocardiogramQuery which has code snippets on how to use them.

HKElectrcardiogram is a subclass of HKSample just as HKQuantitySample and HKCategorySample are subclasses. Use HKObjectType.electrocardiogramType() to access the type.

Is any sample or demo example for Electrocardiogram Health Data Point?
 
 
Q