Files
Schnappix/node_modules/expo-modules-core/ios/Legacy/EXUtilities.h
T

28 lines
883 B
Objective-C

// Copyright © 2018 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <ExpoModulesCore/Platform.h>
#import <ExpoModulesCore/EXInternalModule.h>
#import <ExpoModulesCore/EXUtilitiesInterface.h>
#import <ExpoModulesCore/EXModuleRegistryConsumer.h>
NS_ASSUME_NONNULL_BEGIN
@interface EXUtilities : NSObject <EXInternalModule, EXUtilitiesInterface, EXModuleRegistryConsumer>
+ (void)performSynchronouslyOnMainThread:(nonnull void (^)(void))block;
+ (CGFloat)screenScale;
+ (nullable UIColor *)UIColor:(nullable id)json;
+ (nullable NSDate *)NSDate:(nullable id)json;
+ (nonnull NSString *)hexStringWithCGColor:(nonnull CGColorRef)color;
- (nullable UIViewController *)currentViewController;
- (nullable NSDictionary *)launchOptions;
+ (BOOL)catchException:(void(^)(void))tryBlock error:(__autoreleasing NSError **)error;
@end
NS_ASSUME_NONNULL_END