1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // WFCUFloatingWindow.h
- // WFDemo
- //
- // Created by heavyrain on 17/9/27.
- // Copyright © 2017年 WildFireChat. All rights reserved.
- //
- #if WFCU_SUPPORT_VOIP
- #import <Foundation/Foundation.h>
- #import <WFAVEngineKit/WFAVEngineKit.h>
- /*!
- 最小化显示的悬浮窗
- */
- @interface WFCUFloatingWindow : NSObject
- /*!
- 悬浮窗的Window
- */
- @property(nonatomic, strong) UIWindow *window;
- /*!
- 音频通话最小化时的Button
- */
- @property(nonatomic, strong) UIButton *floatingButton;
- /*!
- 视频通话最小化时的视频View
- */
- @property(nonatomic, strong) UIView *videoView;
- /*!
- 当前的通话实体
- */
- @property(nonatomic, strong) WFAVCallSession *callSession;
- /*!
- 开启悬浮窗
- @param callSession 通话实体
- @param focusUserId 焦点用户Id
- @param touchedBlock 悬浮窗点击的Block
- */
- + (void)startCallFloatingWindow:(WFAVCallSession *)callSession focusUser:(NSString *)focusUserId
- withTouchedBlock:(void (^)(WFAVCallSession *callSession))touchedBlock;
- /*!
- 关闭当前悬浮窗
- */
- + (void)stopCallFloatingWindow;
- @end
- #endif
|