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