RCTAppleHealthKit+Utils.h 1.01 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//
//  RCTAppleHealthKit+Utils.h
//  RCTAppleHealthKit
//
//  Created by Greg Wilson on 2016-06-26.
//  Copyright © 2016 Greg Wilson. All rights reserved.
//

#import "RCTAppleHealthKit.h"

@interface RCTAppleHealthKit (Utils)

+ (NSDate *)parseISO8601DateFromString:(NSString *)date;
+ (NSString *)buildISO8601StringFromDate:(NSDate *)date;
+ (NSPredicate *)predicateForSamplesToday;
+ (NSPredicate *)predicateForSamplesOnDay:(NSDate *)date;
17
+ (NSPredicate *)predicateForSamplesBetweenDates:(NSDate *)startDate endDate:(NSDate *)endDate;
18
+ (NSPredicate *)predicateForSamplesOnDayFromTimestamp:(NSString *)timestamp;
19
+ (double)doubleValueFromOptions:(NSDictionary *)options;
20
+ (NSDate *)dateFromOptions:(NSDictionary *)options;
21
+ (NSDate *)dateFromOptionsDefaultNow:(NSDictionary *)options;
22 23 24
+ (NSDate *)startDateFromOptions:(NSDictionary *)options;
+ (NSDate *)endDateFromOptions:(NSDictionary *)options;
+ (NSDate *)endDateFromOptionsDefaultNow:(NSDictionary *)options;
25 26
+ (HKUnit *)hkUnitFromOptions:(NSDictionary *)options;

27
@end