RNNotificationCenter.h 713 Bytes
Newer Older
yogevbd's avatar
WIP  
yogevbd committed
1 2 3 4 5 6
#import <Foundation/Foundation.h>
#import <React/RCTBridge.h>
@import UserNotifications;

@interface RNNotificationCenter : NSObject

yogevbd's avatar
WIP  
yogevbd committed
7 8
- (void)isRegisteredForRemoteNotifications:(RCTPromiseResolveBlock)resolve;

yogevbd's avatar
WIP  
yogevbd committed
9
- (void)requestPermissionsWithCategories:(NSArray *)json;
yogevbd's avatar
WIP  
yogevbd committed
10 11 12

- (void)checkPermissions:(RCTPromiseResolveBlock)resolve;

yogevbd's avatar
WIP  
yogevbd committed
13
- (void)sendLocalNotification:(NSDictionary *)notification withId:(NSString *)notificationId;
yogevbd's avatar
WIP  
yogevbd committed
14

yogevbd's avatar
WIP  
yogevbd committed
15
- (void)cancelLocalNotification:(NSString *)notificationId;
yogevbd's avatar
WIP  
yogevbd committed
16

yogevbd's avatar
WIP  
yogevbd committed
17
- (void)removeAllDeliveredNotifications;
yogevbd's avatar
WIP  
yogevbd committed
18

yogevbd's avatar
WIP  
yogevbd committed
19
- (void)removeDeliveredNotifications:(NSArray<NSString *> *)identifiers;
yogevbd's avatar
WIP  
yogevbd committed
20

yogevbd's avatar
WIP  
yogevbd committed
21 22
- (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback;

yogevbd's avatar
WIP  
yogevbd committed
23 24
- (void)cancelAllLocalNotifications;

yogevbd's avatar
WIP  
yogevbd committed
25
@end