45 lines
1.1 KiB
Objective-C
45 lines
1.1 KiB
Objective-C
//
|
||
// RoomGuestDelegate.h
|
||
// YUMI
|
||
//
|
||
// Created by zu on 2021/10/27.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import "MicroQueueProtocol.h"
|
||
#import "RoomAnimationProtocol.h"
|
||
|
||
@class NIMMessage, NIMRecentSession;
|
||
@class AttachmentModel;
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
/** RoomVC 子 View 的通用协议。
|
||
|
||
调用方向:RoomVC —> RoomGuestDelegate
|
||
|
||
**Note:**
|
||
|
||
继承 MicroQueueProtocol、RoomAnimationProtocol 等协议用于子 View 做实现。
|
||
实现后的调用方向:子 View —> RoomHostDelegate —> XXXProtocol(RoomGuestDelegate)。
|
||
|
||
*/
|
||
@protocol RoomGuestDelegate <NSObject, MicroQueueProtocol, RoomAnimationProtocol>
|
||
|
||
@optional
|
||
|
||
- (void)onRoomUpdate;
|
||
- (void)onUserUpdate;
|
||
- (void)onRoomEntered;
|
||
/// 个播 可以切换房间
|
||
- (void)onRoomChange;
|
||
- (void)onRoomMiniEntered;///最小化进房
|
||
- (void)handleNIMNotificationMessage:(NIMMessage *)message;
|
||
- (void)handleNIMCustomMessage:(NIMMessage *)message;
|
||
- (void)handleNIMTextMessage:(NIMMessage *)message;
|
||
- (void)addNIMRecentSession:(NIMRecentSession *)session;
|
||
- (void)removeNIMRecentSession:(NIMRecentSession *)session;
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|