RNNotifications.h 1.01 KB
Newer Older
Lidan Hifi's avatar
Lidan Hifi committed
1 2
@import UIKit;

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

6 7 8 9 10 11 12 13 14 15 16 17
@interface RNNotifications : NSObject <RCTBridgeModule>

+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(id)deviceToken;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
+ (void)didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type;

+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification;

+ (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
18

Lidan Hifi's avatar
Lidan Hifi committed
19
@end