initial commit
This commit is contained in:
38
Example/SellyCloudSDK/Managers/AVConfigManager.h
Normal file
38
Example/SellyCloudSDK/Managers/AVConfigManager.h
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// AVConfigManager.h
|
||||
// AVDemo
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AVVideoConfiguration.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface AVConfigManager : NSObject
|
||||
|
||||
// Singleton
|
||||
+ (instancetype)sharedManager;
|
||||
|
||||
// Global default config
|
||||
@property (nonatomic, strong) AVVideoConfiguration *globalConfig;
|
||||
|
||||
// Load config from UserDefaults
|
||||
- (void)loadConfig;
|
||||
|
||||
// Save config to UserDefaults
|
||||
- (void)saveConfig;
|
||||
|
||||
// Generate random nickname (test + 3 digits)
|
||||
+ (NSString *)generateRandomNickname;
|
||||
|
||||
// 保存和读取单聊频道 ID
|
||||
- (void)saveCallChannelId:(NSString *)channelId;
|
||||
- (NSString *)loadCallChannelId;
|
||||
|
||||
// 保存和读取会议频道 ID
|
||||
- (void)saveConferenceChannelId:(NSString *)channelId;
|
||||
- (NSString *)loadConferenceChannelId;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user