32 lines
980 B
Objective-C
32 lines
980 B
Objective-C
//
|
|
// XPMiniRoomView.h
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2021/12/3.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@class RoomInfoModel;
|
|
@interface XPMiniRoomView : UIView
|
|
|
|
/*
|
|
1.此处使用单利是应为 最小化房间的时候 最小化的点击是在房间中 但是最小化的view 在tabbar中添加 他们中间是没有联系的
|
|
2.语音服务的切换 一个房间最小化的时候 在进入另一个房间 需要退出最小化的那个房间的语音服务
|
|
*/
|
|
+ (instancetype)shareMiniRoomView;
|
|
///进房需要的控制器
|
|
@property (nonatomic,weak) UIViewController * controller;
|
|
///当前最小化的房间的uid 如果没有的话 为nil
|
|
@property (nonatomic,strong, readonly) NSString *currentRoomUid;
|
|
///房间的id
|
|
@property (nonatomic,strong, readonly) NSString *currentRoomId;
|
|
///房间最小化 初始化
|
|
- (void)configRoomMiniView:(RoomInfoModel *)roomInfo;
|
|
///隐藏最小化的view
|
|
- (void)hiddenRoomMiniView;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|