This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo-permissions/ios/EXPermissions/EXReactNativeUserNotificationCenterProxy.m
2021-04-02 02:24:13 +03:00

26 lines
905 B
Objective-C

// Copyright 2018-present 650 Industries. All rights reserved.
#import <EXPermissions/EXReactNativeUserNotificationCenterProxy.h>
#import <UMCore/UMUtilities.h>
@implementation EXReactNativeUserNotificationCenterProxy
UM_REGISTER_MODULE();
+ (const NSArray<Protocol *> *)exportedInterfaces
{
return @[@protocol(UMUserNotificationCenterProxyInterface)];
}
- (void)getNotificationSettingsWithCompletionHandler:(void(^)(UNNotificationSettings *settings))completionHandler
{
[[UNUserNotificationCenter currentNotificationCenter] getNotificationSettingsWithCompletionHandler:completionHandler];
}
- (void)requestAuthorizationWithOptions:(UNAuthorizationOptions)options completionHandler:(void (^)(BOOL granted, NSError *__nullable error))completionHandler
{
[[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:options completionHandler:completionHandler];
}
@end