mergHKAddQuantitySample

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergHKAddQuantitySample <pIdentifier>, <pStartDate>, <pEndDate>, <pValue>, <pUnits>, [<pWorkoutUUID>], [<pMetadata>]
Associationsmerghk
Summary

Add a quantity sample

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pIdentifier

A type identifier as documented here.

pStartDate

A start date in seconds

pEndDate

An end date in seconds

pValue

The quantity value

pUnits

A string representation of the units the value is in. The strings to use are documented here

pWorkoutUUID

(optional with "" default) A UUID for a specific workout. If specified the sample will be added to the workout.

pMetadata

(optional with An default) An array of metadata in using HeathKit keys or custom keys.

https

//developer.apple.com/library/ios/documentation/HealthKit/Reference/HealthKit_Constants/index.html#//apple_ref/doc/constant_group/Metadata_Keys

Values
NameTypeDescription
return

UUID for quantity sample

Description

Add a quantity sample

Tagsexternals