forked from Blendman974/faceclaw
iOS calendar integration
This commit is contained in:
1 parent
50431c7c6f
commit
32063e57cd
18 files changed
+646
-37
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/** Read-only EventKit bridge. Callbacks are delivered on the main queue. */
|
||||
@interface FaceclawCalendar : NSObject
|
||||
+ (instancetype)shared;
|
||||
@property(nonatomic, copy) void (^changeHandler)(void);
|
||||
- (BOOL)hasPermission;
|
||||
- (NSString *)permissionStatus;
|
||||
- (void)requestPermission:(void (^)(BOOL granted, NSString *error))completion;
|
||||
- (void)readUpcomingEvents:(NSInteger)maxEvents
|
||||
windowMs:(double)windowMs
|
||||
completion:(void (^)(NSString *json, NSString *error))completion;
|
||||
@end
|
||||
Reference in new issue
Block a user