mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 00:08:50 +08:00
19 lines
819 B
Objective-C
19 lines
819 B
Objective-C
#import <Foundation/Foundation.h>
|
|
@import UserNotifications;
|
|
|
|
@interface RNNotificationsStore : NSObject
|
|
|
|
@property (nonatomic, retain) NSDictionary* initialNotification;
|
|
|
|
+ (instancetype)sharedInstance;
|
|
|
|
- (void)completeAction:(NSString *)completionKey;
|
|
- (void)completePresentation:(NSString *)completionKey withPresentationOptions:(UNNotificationPresentationOptions)presentationOptions;
|
|
- (void)setActionCompletionHandler:(void (^)(void))completionHandler withCompletionKey:(NSString *)completionKey;
|
|
- (void)setPresentationCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler withCompletionKey:(NSString *)completionKey;
|
|
|
|
- (void (^)(void))getActionCompletionHandler:(NSString *)key;
|
|
- (void (^)(UNNotificationPresentationOptions))getPresentationCompletionHandler:(NSString *)key;
|
|
|
|
@end
|