Files
real-e-party-iOS/YuMi/Global/GlobalEventManager.h
edwinQQQ e980cd5553 Phase 1 Day 1: 基础架构搭建
- 创建 white-label-base 分支
- 添加 APIConfig.swift(API 域名动态生成,XOR + Base64 加密)
  * DEV 环境使用原测试域名
  * RELEASE 环境使用新域名 https://api.epartylive.com
- 添加 Swift/OC 混编支持(YuMi-Bridging-Header.h)
- 创建 GlobalEventManager(全局事件管理器)
  * 迁移 NIMSDK 代理
  * 迁移房间最小化逻辑
  * 迁移全局通知处理
- 创建 NewTabBarController(Swift TabBar,只有 2 个 Tab)
  * Moment Tab
  * Mine Tab
  * 新的主色调和样式
2025-10-09 17:48:07 +08:00

72 lines
1.6 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// GlobalEventManager.h
// YuMi
//
// Created by AI on 2025-10-09.
// Copyright © 2025 YuMi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
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