RCTAppleHealthKit.h 689 Bytes
Newer Older
1 2 3 4 5
//
//  RCTAppleHealthKit.h
//  RCTAppleHealthKit
//
//  Created by Greg Wilson on 2016-06-26.
EEvgeniiF's avatar
EEvgeniiF committed
6
//  Copyright © 2016 Greg Wilson. All rights reserved.
7 8 9 10
//

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

@interface RCTAppleHealthKit : NSObject <RCTBridgeModule>

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

20 21 22 23 24
- (void)isHealthKitAvailable:(RCTResponseSenderBlock)callback;
- (void)initializeHealthKit:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback;
- (void)getModuleInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback;

@end