49 lines
1.3 KiB
Objective-C
49 lines
1.3 KiB
Objective-C
//
|
||
// 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
|