mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 00:08:50 +08:00
20 lines
1.0 KiB
Objective-C
20 lines
1.0 KiB
Objective-C
@import UIKit;
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
#import <PushKit/PushKit.h>
|
|
|
|
@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;
|
|
|
|
@end
|