Files
react-native-notifications/RNNotifications/RNCommandsHandler.h
yogevbd 6a3809abec WIP
2019-07-07 15:45:04 +03:00

42 lines
1.2 KiB
Objective-C

#import <Foundation/Foundation.h>
#import <React/RCTBridge.h>
#import "RNNotificationsStore.h"
@interface RNCommandsHandler : NSObject
- (instancetype)initWithStore:(RNNotificationsStore *)store;
- (void)requestPermissionsWithCategories:(NSArray *)json;
- (void)getInitialNotification:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject;
- (void)completionHandler:(NSString *)completionKey;
- (void)abandonPermissions;
- (void)registerPushKit;
- (void)getBadgesCount:(RCTResponseSenderBlock)callback;
- (void)setBadgesCount:(int)count;
- (void)localNotification:(NSDictionary *)notification withId:(NSString *)notificationId;
- (void)cancelLocalNotification:(NSString *)notificationId;
- (void)cancelAllLocalNotifications;
- (void)isRegisteredForRemoteNotifications:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject;
- (void)checkPermissions:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject;
- (void)removeAllDeliveredNotifications;
- (void)removeDeliveredNotifications:(NSArray<NSString *> *)identifiers;
- (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback;
@end