WeexProtocol.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // WeexProtocol.h
  3. // libPDRCore
  4. //
  5. // Created by DCloud on 2018/6/7.
  6. // Copyright © 2018年 DCloud. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. extern NSString* kWeexImportClassName;
  10. #import "WXSDKInstance.h"
  11. #import "WXSDKManager.h"
  12. #import "WXDefine.h"
  13. @class WXRootView;
  14. extern NSString* const kWeexOptionsRenderKey;
  15. extern NSString* const kWeexOptionsFrameworkKey;
  16. @protocol WeexProtocol <NSObject>
  17. - (void)initWeexWithOptions:(NSDictionary*)options;
  18. - (NSDictionary *)getWeexOptions;
  19. - (void)destoryWeex;
  20. - (id)newWXSDKInstance;
  21. - (NSString*)getweexExposedModuleJs;
  22. - (WXRootView*)weexInstanceRootView:(CGRect)frame;
  23. - (WXBridgeManager*)bridgeMgr;
  24. - (void)restart;
  25. - (void)restartWithOptions:(NSDictionary*)options;
  26. - (void)refreshDefaultFlexDirection;
  27. - (BOOL)weexDebugMode;
  28. - (void)evaljs:(NSString*)js inSDKInstance:(NSString*)instance;
  29. - (void)postWeexMessageWithPayload:(NSDictionary*)payload inWeexInstance:(NSString*)instanceId;
  30. - (id)callNativeModulSyncWithPayload:(NSDictionary*)payload inWeexInstance:(NSString*)instanceId;
  31. @end