36 lines
933 B
Objective-C
36 lines
933 B
Objective-C
//
|
|
// XPRoomMiniManager.h
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2021/12/8.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@class RoomInfoModel, NIMMessage, Music, UserInfoModel;
|
|
@interface XPRoomMiniManager : NSObject
|
|
+ (instancetype)shareManager;
|
|
|
|
- (RoomInfoModel *)getRoomInfo;
|
|
|
|
- (void)configRoomInfo:(RoomInfoModel * _Nullable)roomInfo;
|
|
|
|
- (UserInfoModel *)getUserInfo;
|
|
|
|
- (void)configUserInfo:(UserInfoModel * _Nullable)userInfo;
|
|
///保存一下 房间的公屏防止最小化出去之后 被清空了
|
|
- (void)saveRoomMessage:(NIMMessage *)message;
|
|
- (NSArray<NIMMessage *> *)getLocalCurrentRoomMessage;
|
|
- (void)resetLocalMessage;
|
|
|
|
///获取当前播放的歌曲
|
|
- (Music *)getCurrentMusic;
|
|
///是否正在播放
|
|
- (BOOL)musicPlaying;
|
|
///最小化的时候也要保存一下当前播放的歌曲
|
|
- (void)configCurrentMusic:(Music * _Nullable)roomInfo isPlaying:(BOOL)isPlaying;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|