// // SellyCallControlView.h // SellyCloudSDK_Example // // Created by Caleb on 12/17/25. // Copyright © 2025 Caleb. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, SellyCallControlAction) { SellyCallControlActionSpeaker, SellyCallControlActionVideo, SellyCallControlActionSwitchCamera, SellyCallControlActionMute, SellyCallControlActionPiP, SellyCallControlActionScreenShare, SellyCallControlActionHangup }; @class SellyCallControlView; @protocol SellyCallControlViewDelegate - (void)callControlView:(SellyCallControlView *)controlView didTapAction:(SellyCallControlAction)action; @end @interface SellyCallControlView : UIView @property (nonatomic, weak) id delegate; // 控制按钮显示/隐藏 @property (nonatomic, assign) BOOL showPiPButton; // 是否显示画中画按钮(默认 NO) @property (nonatomic, assign) BOOL showScreenShareButton; // 是否显示屏幕分享按钮(默认 NO) // 更新按钮状态 - (void)updateSpeakerEnabled:(BOOL)enabled; - (void)updateVideoEnabled:(BOOL)enabled; - (void)updateMuteEnabled:(BOOL)muted; - (void)updatePiPEnabled:(BOOL)enabled; // 画中画状态 - (void)updateScreenShareEnabled:(BOOL)enabled; // 屏幕分享状态 @end NS_ASSUME_NONNULL_END