DCUniModule.h 921 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // DCUniNativeModule.h
  3. //
  4. // Created by DCloud on 2020/10/12.
  5. // Copyright © 2020 DCloud. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "DCUniBasePlugin.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface DCUniModule : NSObject
  11. /**
  12. * @abstract 可选 如果要在特殊队列中执行Module操作,请自己实现。
  13. * 默认调度队列将为主队列。
  14. *
  15. */
  16. @property (nonatomic, strong)dispatch_queue_t uniExecuteQueue;
  17. /**
  18. * @abstract 可选 如果要在特殊线程中执行模块动作,可以创建一个。
  19. 如果实现了“ targetExecuteQueue”,则首先考虑返回的队列。
  20. * 默认是主线程。
  21. *
  22. */
  23. @property (nonatomic, strong)NSThread * uniExecuteThread;
  24. /**
  25. * @abstract 实例绑定到此模块。 它可以帮助您获得许多与实例相关的有用属性。
  26. */
  27. @property (nonatomic, weak) DCUniSDKInstance * uniInstance;
  28. @end
  29. NS_ASSUME_NONNULL_END