// // TUICallingFloatingWindow.h // TUICalling // // Created by noah on 2022/1/12. // #import #import @class TUICallingVideoRenderView; NS_ASSUME_NONNULL_BEGIN static CGFloat const kMicroAudioViewWidth = 80.0f; static CGFloat const kMicroAudioViewHeight = 80.0f; static CGFloat const kMicroVideoViewWidth = 100.0f; static CGFloat const kMicroVideoViewHeight = 100.0f * 16 / 9.0; #define kMicroAudioViewRect (CGRectMake(Screen_Width - kMicroAudioViewWidth, 150, kMicroAudioViewWidth, kMicroAudioViewHeight)) #define kMicroVideoViewRect (CGRectMake(Screen_Width - kMicroVideoViewWidth, 150, kMicroVideoViewWidth, kMicroVideoViewHeight)) @protocol TUICallingFloatingWindowDelegate /// 点击悬浮窗回调 - (void)floatingWindowDidClickView; /// 悬浮窗改变了坐标系 - (void)floatingWindowChangedFrame; @end @interface TUICallingFloatingWindow : UIWindow @property (nonatomic, weak) id delegate; - (instancetype)initWithFrame:(CGRect)frame delegate:(id)delegate; - (void)updateMicroWindowWithText:(NSString *)textStr; - (void)updateMicroWindowWithRenderView:(TUICallingVideoRenderView *)renderView; - (void)floatingWindowRoundedRect; @end NS_ASSUME_NONNULL_END