RNNotificationCenter.h 534 Bytes
Newer Older
yogevbd's avatar
WIP  
yogevbd committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#import <Foundation/Foundation.h>
#import <React/RCTBridge.h>
@import UserNotifications;

@interface RNNotificationCenter : NSObject

- (void)requestPermissionsWithCategories:(NSArray *)json;
- (void)sendLocalNotification:(NSDictionary *)notification withId:(NSString *)notificationId;
- (void)cancelLocalNotification:(NSString *)notificationId;
- (void)removeAllDeliveredNotifications;
- (void)removeDeliveredNotifications:(NSArray<NSString *> *)identifiers;
- (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback;

@end