HealKit HKObjectType 一覧

 iOS8からHealthKitが使用できるようになりました。このHealthKit使用することで様々なヘルスデータを管理できます。これらのデータへアクセスする場合、アプリ内で各データへのアクセスをユーザーに確認しなければなりません。確認するには以下のメソッドを使用するのですが、アクセスするデータのタイプがわかりにくかったので一覧にまとめてみました。
※確認を行った端末はiOS8.2になります。

HealthKitデータへのアクセス確認メソッド
- (void)requestAuthorizationToShareTypes:(NSSet *)typesToShare
                               readTypes:(NSSet *)typesToRead
                              completion:(void (^)(BOOL success, NSError *error))completion;


HealthKitデータへのアクセス確認画面



HealthKitデータタイプ一覧
QuantityTypeIdentifier表示名
HKQuantityTypeIdentifierBodyMassIndexボディマス指数(BMI)
HKQuantityTypeIdentifierBodyFatPercentage体脂肪率
HKQuantityTypeIdentifierHeight身長
HKQuantityTypeIdentifierBodyMass体重
HKQuantityTypeIdentifierLeanBodyMass除脂肪体重
HKQuantityTypeIdentifierStepCount歩数
HKQuantityTypeIdentifierDistanceWalkingRunningウォーキング+ランニング
HKQuantityTypeIdentifierDistanceCycling自転車の走行距離
HKQuantityTypeIdentifierBasalEnergyBurned基礎代謝量
HKQuantityTypeIdentifierActiveEnergyBurnedアクティブカロリー
HKQuantityTypeIdentifierFlightsClimbed上った回数
HKQuantityTypeIdentifierNikeFuelNikeFuel
HKQuantityTypeIdentifierHeartRate心拍数
HKQuantityTypeIdentifierBodyTemperature体温
HKQuantityTypeIdentifierBloodPressureSystolic最高血圧
HKQuantityTypeIdentifierBloodPressureDiastolic最低血圧
HKQuantityTypeIdentifierRespiratoryRate呼吸数
HKQuantityTypeIdentifierOxygenSaturation酸素飽和度
HKQuantityTypeIdentifierPeripheralPerfusionIndex微小循環指標
HKQuantityTypeIdentifierBloodGlucose血糖値
HKQuantityTypeIdentifierNumberOfTimesFallen倒れた回数
HKQuantityTypeIdentifierElectrodermalActivity皮膚電位
HKQuantityTypeIdentifierInhalerUsage吸入器の使用状況
HKQuantityTypeIdentifierBloodAlcoholContent血中アルコール濃度
HKQuantityTypeIdentifierForcedVitalCapacity努力肺活量
HKQuantityTypeIdentifierForcedExpiratoryVolume1努力呼気肺活量(1秒)
HKQuantityTypeIdentifierPeakExpiratoryFlowRate最大呼気速度
HKQuantityTypeIdentifierDietaryFatTotal総脂肪
HKQuantityTypeIdentifierDietaryFatPolyunsaturated多価不飽和脂肪酸
HKQuantityTypeIdentifierDietaryFatMonounsaturated一価飽和脂肪酸
HKQuantityTypeIdentifierDietaryFatSaturated飽和脂肪酸
HKQuantityTypeIdentifierDietaryCholesterol食物中のコレステロール
HKQuantityTypeIdentifierDietarySodiumナトリウム
HKQuantityTypeIdentifierDietaryCarbohydrates炭水化物
HKQuantityTypeIdentifierDietaryFiber食物繊維
HKQuantityTypeIdentifierDietarySugar糖分
HKQuantityTypeIdentifierDietaryEnergyConsumed摂取カロリー
HKQuantityTypeIdentifierDietaryProteinたんぱく質
HKQuantityTypeIdentifierDietaryVitaminAビタミンA
HKQuantityTypeIdentifierDietaryVitaminB6ビタミンB6
HKQuantityTypeIdentifierDietaryVitaminB12ビタミンB12
HKQuantityTypeIdentifierDietaryVitaminCビタミンC
HKQuantityTypeIdentifierDietaryVitaminDビタミンD
HKQuantityTypeIdentifierDietaryVitaminEビタミンE
HKQuantityTypeIdentifierDietaryVitaminKビタミンK
HKQuantityTypeIdentifierDietaryCalciumカルシウム
HKQuantityTypeIdentifierDietaryIron
HKQuantityTypeIdentifierDietaryThiaminチアミン
HKQuantityTypeIdentifierDietaryRiboflavinビタミンB2
HKQuantityTypeIdentifierDietaryNiacinナイアシン
HKQuantityTypeIdentifierDietaryFolate葉酸
HKQuantityTypeIdentifierDietaryBiotinビオチン
HKQuantityTypeIdentifierDietaryPantothenicAcidパントテン酸
HKQuantityTypeIdentifierDietaryPhosphorusリン
HKQuantityTypeIdentifierDietaryIodineヨウ素
HKQuantityTypeIdentifierDietaryMagnesiumマグネシウム
HKQuantityTypeIdentifierDietaryZinc亜鉛
HKQuantityTypeIdentifierDietarySeleniumセレン
HKQuantityTypeIdentifierDietaryCopper
HKQuantityTypeIdentifierDietaryManganeseマンガン
HKQuantityTypeIdentifierDietaryChromiumクロム
HKQuantityTypeIdentifierDietaryMolybdenumモリブデン
HKQuantityTypeIdentifierDietaryChloride塩化物
HKQuantityTypeIdentifierDietaryPotassiumカリウム
HKQuantityTypeIdentifierDietaryCaffeineカフェイン
HKCategoryTypeIdentifierSleepAnalysis-
HKCharacteristicTypeIdentifierBiologicalSex-
HKCharacteristicTypeIdentifierBloodType-
HKCharacteristicTypeIdentifierDateOfBirth-
HKCorrelationTypeIdentifierBloodPressure-
HKCorrelationTypeIdentifierFood-
HKWorkoutTypeIdentifier-

コメント

このブログの人気の投稿

クラッシュ時のスタックトレース取得方法

Undefined symbols for architecture arm64