RCTAppleHealthKit.h 852 Bytes
Newer Older
1 2 3 4 5
//
//  RCTAppleHealthKit.h
//  RCTAppleHealthKit
//
//  Created by Greg Wilson on 2016-06-26.
6 7
//  This source code is licensed under the MIT-style license found in the
//  LICENSE file in the root directory of this source tree.
8 9 10 11
//

#import <Foundation/Foundation.h>
#import <HealthKit/HealthKit.h>
12 13 14
#import <React/RCTBridgeModule.h>
#import <React/RCTUtils.h>
#import <React/RCTLog.h>
15 16 17 18

@interface RCTAppleHealthKit : NSObject <RCTBridgeModule>

@property (nonatomic) HKHealthStore *healthStore;
Evgenii Evstropov's avatar
Evgenii Evstropov committed
19
@property BOOL isSync;
Greg Wilson's avatar
Greg Wilson committed
20

21 22
- (void)isHealthKitAvailable:(RCTResponseSenderBlock)callback;
- (void)initializeHealthKit:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback;
23
- (void)checkPermission:(NSString *)input callback:(RCTResponseSenderBlock)callback;
24 25 26
- (void)getModuleInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback;

@end