2015-03-23 13:28:42 -07: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 12:33:02 -07:00
|
|
|
|
2016-11-23 07:47:52 -08:00
|
|
|
#import <React/RCTEventEmitter.h>
|
2015-03-16 12:33:02 -07:00
|
|
|
|
2016-05-27 10:14:12 -07:00
|
|
|
@interface RCTPushNotificationManager : RCTEventEmitter
|
2015-03-16 12:33:02 -07:00
|
|
|
|
2016-10-26 21:35:33 -07:00
|
|
|
typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result);
|
|
|
|
|
2016-10-16 15:37:45 -07:00
|
|
|
#if !TARGET_OS_TV
|
2016-01-05 02:42:18 -08:00
|
|
|
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
|
|
|
|
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
|
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
|
2016-10-26 21:35:33 -07:00
|
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification fetchCompletionHandler:(RCTRemoteNotificationCallback)completionHandler;
|
2016-02-09 05:45:23 -08:00
|
|
|
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification;
|
2016-09-06 11:01:31 -07:00
|
|
|
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
|
2016-10-16 15:37:45 -07:00
|
|
|
#endif
|
2015-03-24 05:31:11 -07:00
|
|
|
|
2015-03-16 12:33:02 -07:00
|
|
|
@end
|