// // GlobalEventManager.h // YuMi // // Created by AI on 2025-10-09. // Copyright © 2025 YuMi. All rights reserved. // #import #import NS_ASSUME_NONNULL_BEGIN /// 全局事件管理器 /// 负责处理原 TabBar 中的全局逻辑(SDK 代理、房间最小化、通知等) @interface GlobalEventManager : NSObject /// 单例 + (instancetype)shared; // MARK: - SDK Delegates Setup /// 设置所有第三方 SDK 的代理 - (void)setupSDKDelegates; /// 移除所有代理(dealloc 时调用) - (void)removeAllDelegates; // MARK: - Room Mini View /// 设置房间最小化视图 /// @param containerView 父视图(通常是 TabBar 的 view) - (void)setupRoomMiniViewOn:(UIView *)containerView; /// 处理房间最小化通知 /// @param userInfo 通知携带的数据 - (void)handleRoomMini:(NSDictionary * _Nullable)userInfo; /// 隐藏房间最小化视图 - (void)hideRoomMiniView; // MARK: - Global Notifications /// 处理配置重载通知 - (void)handleConfigReload; /// 处理新用户充值通知 - (void)handleNewUserRecharge; /// 处理主播卡片通知 /// @param notification 通知对象 - (void)handleAnchorCard:(NSNotification * _Nullable)notification; /// 处理语言切换通知 /// @param notification 通知对象 - (void)handleLanguageSwitch:(NSNotification * _Nullable)notification; // MARK: - User Info /// 获取用户信息成功后的处理 /// @param userInfo 用户信息模型 - (void)handleUserInfoSuccess:(id)userInfo; // MARK: - Social Share /// 注册社交分享回调 - (void)registerSocialShareCallback; @end NS_ASSUME_NONNULL_END