Files
react-native-notifications/RNNotifications/RNNotificationCenter.h
yogevbd 235cffd8a4 WIP
2019-07-09 00:42:38 +03:00

15 lines
534 B
Objective-C

#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