RNNotificationsBridgeQueue.h 630 Bytes
Newer Older
1 2 3 4
#import <Foundation/Foundation.h>

@interface RNNotificationsBridgeQueue : NSObject

5
@property BOOL jsIsReady;
6 7
@property NSDictionary* openedRemoteNotification;
@property NSDictionary* openedLocalNotification;
8 9

+ (nonnull instancetype)sharedInstance;
10

11 12 13 14 15 16 17
- (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;
18 19

@end