mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-10 07:19:38 +08:00
45 lines
1.3 KiB
Objective-C
45 lines
1.3 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "RNNotificationCenter.h"
|
|
|
|
@interface RNCommandsHandler : NSObject
|
|
|
|
- (instancetype)init;
|
|
|
|
- (void)requestPermissions;
|
|
|
|
- (void)setCategories:(NSArray *)categories;
|
|
|
|
- (void)getInitialNotification:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject;
|
|
|
|
- (void)finishHandlingAction:(NSString *)completionKey;
|
|
|
|
- (void)finishPresentingNotification:(NSString *)completionKey presentingOptions:(NSDictionary *)presentingOptions;
|
|
|
|
- (void)abandonPermissions;
|
|
|
|
- (void)registerPushKit;
|
|
|
|
- (void)getBadgeCount:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject;
|
|
|
|
- (void)setBadgeCount:(int)count;
|
|
|
|
- (void)postLocalNotification:(NSDictionary *)notification withId:(NSNumber *)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
|