RNNotifications.h 956 Bytes
Newer Older
Lidan Hifi's avatar
Lidan Hifi committed
1 2 3
@import UIKit;

#import "RCTBridgeModule.h"
4
#import <PushKit/PushKit.h>
Lidan Hifi's avatar
Lidan Hifi committed
5

Lidan Hifi's avatar
Lidan Hifi committed
6
@interface RNNotifications : NSObject <RCTBridgeModule>
Lidan Hifi's avatar
Lidan Hifi committed
7

8 9 10 11
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
+ (void)didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type;

Lidan Hifi's avatar
Lidan Hifi committed
12 13 14
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification;

15 16
+ (void)handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)())completionHandler;
+ (void)handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)())completionHandler;
Lidan Hifi's avatar
Lidan Hifi committed
17

Lidan Hifi's avatar
Lidan Hifi committed
18
@end