Files
SellyCloudSDK_demo/Example/SellyCloudSDK/VideoCall/SellyCallControlView.h
2026-03-01 15:59:27 +08:00

49 lines
1.3 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// SellyCallControlView.h
// SellyCloudSDK_Example
//
// Created by Caleb on 12/17/25.
// Copyright © 2025 Caleb. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, SellyCallControlAction) {
SellyCallControlActionSpeaker,
SellyCallControlActionVideo,
SellyCallControlActionSwitchCamera,
SellyCallControlActionMute,
SellyCallControlActionPiP,
SellyCallControlActionScreenShare,
SellyCallControlActionHangup
};
@class SellyCallControlView;
@protocol SellyCallControlViewDelegate <NSObject>
- (void)callControlView:(SellyCallControlView *)controlView didTapAction:(SellyCallControlAction)action;
@end
@interface SellyCallControlView : UIView
@property (nonatomic, weak) id<SellyCallControlViewDelegate> 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