1//  Copyright © 2018-present 650 Industries. All rights reserved.
2
3#import "EXExpoUserNotificationCenterProxy.h"
4
5@interface EXExpoUserNotificationCenterProxy ()
6
7@property (nonatomic, weak) id<EXUserNotificationCenterProxyInterface> userNotificationCenter;
8
9@end
10
11@implementation EXExpoUserNotificationCenterProxy
12
13- (instancetype)initWithUserNotificationCenter:(id<EXUserNotificationCenterProxyInterface>)userNotificationCenter
14{
15  if (self = [super init]) {
16    _userNotificationCenter = userNotificationCenter;
17  }
18  return self;
19}
20
21+ (const NSArray<Protocol *> *)exportedInterfaces
22{
23  return @[@protocol(EXUserNotificationCenterProxyInterface)];
24}
25
26- (void)getNotificationSettingsWithCompletionHandler:(void(^)(UNNotificationSettings *settings))completionHandler
27{
28  [_userNotificationCenter getNotificationSettingsWithCompletionHandler:completionHandler];
29}
30
31- (void)requestAuthorizationWithOptions:(UNAuthorizationOptions)options completionHandler:(void (^)(BOOL granted, NSError *__nullable error))completionHandler
32{
33  [_userNotificationCenter requestAuthorizationWithOptions:options completionHandler:completionHandler];
34}
35
36@end
37