Files
peko-ios/YuMi/Modules/YMRoom/View/XPRoomMiniManager.h
2024-10-17 16:05:02 +08:00

43 lines
1.1 KiB
Objective-C

//
// YMRoomMiniManager.h
// YUMI
//
// Created by YUMI on 2021/12/8.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class RoomInfoModel, NIMMessage, Music, UserInfoModel;
@interface XPRoomMiniManager : NSObject
///最小化时,免费礼物的倒计时还在,用来判断是否弹出获得免费礼物弹窗
@property (nonatomic,copy) NSString *_Nullable curState;
+ (instancetype)shareManager;
- (RoomInfoModel *)getRoomInfo;
- (void)configRoomInfo:(RoomInfoModel * _Nullable)roomInfo;
- (UserInfoModel *)getUserInfo;
- (void)configUserInfo:(UserInfoModel * _Nullable)userInfo;
///保存一下 房间的公屏防止最小化出去之后 被清空了
///MARK: 原类型是 NIMMessage, 改为 id 兼容 NIMBroadcastMessage
- (void)saveRoomMessage:(id)message;
- (NSArray *)getLocalCurrentRoomMessage;
- (void)resetLocalMessage;
///获取当前播放的歌曲
- (Music *)getCurrentMusic;
///是否正在播放
- (BOOL)musicPlaying;
///最小化的时候也要保存一下当前播放的歌曲
- (void)configCurrentMusic:(Music * _Nullable)roomInfo isPlaying:(BOOL)isPlaying;
@end
NS_ASSUME_NONNULL_END