ComPDFKitRN.mm 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  2. //
  3. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  4. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  5. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  6. // This notice may not be removed from this file.
  7. //
  8. #import <React/RCTBridgeModule.h>
  9. @interface RCT_EXTERN_MODULE(ComPDFKit, NSObject)
  10. RCT_EXTERN_METHOD(getVersionCode:(RCTPromiseResolveBlock)resolve
  11. withRejecter:(RCTPromiseRejectBlock)reject)
  12. RCT_EXTERN_METHOD(getSDKBuildTag:(RCTPromiseResolveBlock)resolve
  13. withRejecter:(RCTPromiseRejectBlock)reject)
  14. RCT_EXTERN_METHOD(init_:(NSString *)license
  15. withResolver:(RCTPromiseResolveBlock)resolve
  16. withRejecter:(RCTPromiseRejectBlock)reject)
  17. RCT_EXTERN_METHOD(initialize:(NSString *)androidOnlineLicense
  18. iosOnlineLicense:(NSString *)iosOnlineLicense
  19. withResolver:(RCTPromiseResolveBlock)resolve
  20. withRejecter:(RCTPromiseRejectBlock)reject)
  21. RCT_EXTERN_METHOD(openDocument:(NSURL *)document
  22. password:(NSString *)password
  23. configurationJson:(NSString *)configurationJson)
  24. + (BOOL)requiresMainQueueSetup
  25. {
  26. return NO;
  27. }
  28. @end