WFCUFloatingWindow.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // WFCUFloatingWindow.h
  3. // WFDemo
  4. //
  5. // Created by heavyrain on 17/9/27.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #if WFCU_SUPPORT_VOIP
  9. #import <Foundation/Foundation.h>
  10. #import <WFAVEngineKit/WFAVEngineKit.h>
  11. /*!
  12. 最小化显示的悬浮窗
  13. */
  14. @interface WFCUFloatingWindow : NSObject
  15. /*!
  16. 悬浮窗的Window
  17. */
  18. @property(nonatomic, strong) UIWindow *window;
  19. /*!
  20. 音频通话最小化时的Button
  21. */
  22. @property(nonatomic, strong) UIButton *floatingButton;
  23. /*!
  24. 视频通话最小化时的视频View
  25. */
  26. @property(nonatomic, strong) UIView *videoView;
  27. /*!
  28. 当前的通话实体
  29. */
  30. @property(nonatomic, strong) WFAVCallSession *callSession;
  31. /*!
  32. 开启悬浮窗
  33. @param callSession 通话实体
  34. @param focusUserId 焦点用户Id
  35. @param touchedBlock 悬浮窗点击的Block
  36. */
  37. + (void)startCallFloatingWindow:(WFAVCallSession *)callSession focusUser:(NSString *)focusUserId
  38. withTouchedBlock:(void (^)(WFAVCallSession *callSession))touchedBlock;
  39. /*!
  40. 关闭当前悬浮窗
  41. */
  42. + (void)stopCallFloatingWindow;
  43. @end
  44. #endif