mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 00:08:50 +08:00
19 lines
630 B
Objective-C
19 lines
630 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface RNNotificationsBridgeQueue : NSObject
|
|
|
|
@property BOOL jsIsReady;
|
|
@property NSDictionary* openedRemoteNotification;
|
|
@property NSDictionary* openedLocalNotification;
|
|
|
|
+ (nonnull instancetype)sharedInstance;
|
|
|
|
- (void)postAction:(NSDictionary *)action withCompletionKey:(NSString *)completionKey andCompletionHandler:(void (^)())completionHandler;
|
|
- (void)postNotification:(NSDictionary *)notification;
|
|
|
|
- (void)consumeActionsQueue:(void (^)(NSDictionary *))block;
|
|
- (void)consumeNotificationsQueue:(void (^)(NSDictionary *))block;
|
|
|
|
- (void)completeAction:(NSString *)completionKey;
|
|
|
|
@end |