mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-13 01:28:11 +08:00
15 lines
534 B
Objective-C
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
|