1 // Copyright © 2018 650 Industries. All rights reserved. 2 3 #import <Foundation/Foundation.h> 4 5 #import <ExpoModulesCore/EXDefines.h> 6 #import <ExpoModulesCore/EXInternalModule.h> 7 8 NS_ASSUME_NONNULL_BEGIN 9 10 // Register a subclass of this class in EXModuleRegistryProvider 11 // to export an instance of this module to client code. 12 // Check documentation of the adapter appropriate to your platform 13 // to find out how to access constants and methods exported by the modules. 14 15 @interface EXExportedModule : NSObject <EXInternalModule, NSCopying> 16 17 - (NSDictionary *)constantsToExport; 18 + (const NSString *)exportedModuleName; 19 - (NSDictionary<NSString *, NSString *> *)getExportedMethods; 20 - (void)callExportedMethod:(NSString *)methodName withArguments:(NSArray *)arguments resolver:(EXPromiseResolveBlock)resolver rejecter:(EXPromiseRejectBlock)rejecter; 21 22 - (dispatch_queue_t)methodQueue; 23 24 @end 25 26 NS_ASSUME_NONNULL_END 27