酷店

AlibcMultiDelegates.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * AlibcMultiDelegates.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeCommon
  6. * 版本号:3.1.1.93
  7. * 发布时间:2017-03-06
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. @class AlibcMultiDelegateEnumerator;
  15. @interface AlibcMultiDelegates<ObjectType> : NSObject
  16. - (void)addDelegate:(nullable ObjectType)aDelegate;
  17. - (void)removeDelegate:(nullable ObjectType)aDelegate;
  18. - (void)addDelegate:(nullable ObjectType)delegate delegateQueue:(nullable dispatch_queue_t)delegateQueue;
  19. - (void)removeDelegate:(nullable ObjectType)delegate delegateQueue:(nullable dispatch_queue_t)delegateQueue;
  20. - (void)removeAllDelegates;
  21. - (NSUInteger)count;
  22. - (NSUInteger)countOfClass:(Class)aClass;
  23. - (NSUInteger)countForSelector:(SEL)aSelector;
  24. - (BOOL)hasDelegateThatRespondsToSelector:(SEL)aSelector;
  25. - (AlibcMultiDelegateEnumerator *)delegateEnumerator;
  26. @end
  27. @interface AlibcMultiDelegateEnumerator : NSObject
  28. - (NSUInteger)count;
  29. - (NSUInteger)countOfClass:(Class)aClass;
  30. - (NSUInteger)countForSelector:(SEL)aSelector;
  31. - (BOOL)getNextDelegate:(id _Nullable * _Nullable)delegatePointer delegateQueue:(dispatch_queue_t _Nullable * _Nullable)queuePointer;
  32. - (BOOL)getNextDelegate:(id _Nullable * _Nullable)delegatePointer delegateQueue:(dispatch_queue_t _Nullable * _Nullable)queuePointer ofClass:(Class)aClass;
  33. - (BOOL)getNextDelegate:(id _Nullable * _Nullable)delegatePointer delegateQueue:(dispatch_queue_t _Nullable * _Nullable)queuePointer forSelector:(SEL)aSelector;
  34. @end
  35. NS_ASSUME_NONNULL_END