2015-03-23 20:28:42 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-03-16 19:33:02 +00:00
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTEventEmitter.h>
|
2015-03-16 19:33:02 +00:00
|
|
|
|
2016-05-27 17:14:12 +00:00
|
|
|
@interface RCTPushNotificationManager : RCTEventEmitter
|
2015-03-16 19:33:02 +00:00
|
|
|
|
2016-10-27 04:35:33 +00:00
|
|
|
typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result);
|
|
|
|
|
2016-10-16 22:37:45 +00:00
|
|
|
#if !TARGET_OS_TV
|
2016-01-05 10:42:18 +00:00
|
|
|
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
|
|
|
|
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
|
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
|
2016-10-27 04:35:33 +00:00
|
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification fetchCompletionHandler:(RCTRemoteNotificationCallback)completionHandler;
|
2016-02-09 13:45:23 +00:00
|
|
|
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification;
|
2016-09-06 18:01:31 +00:00
|
|
|
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
|
2016-10-16 22:37:45 +00:00
|
|
|
#endif
|
2015-03-24 12:31:11 +00:00
|
|
|
|
2015-03-16 19:33:02 +00:00
|
|
|
@end
|