NIMSDK-iOS
载入中...
搜索中...
未找到
NIMSystemStateProtocol.h
浏览该文件的文档.
1//
2// NIMSystemStateProtocol.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright (c) 2024 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13@protocol NIMSystemStateDelegate;
14
15/**
16 * 系统状态委托
17 */
18@protocol NIMSystemStateManager <NSObject>
19
20/**
21 * 添加系统状态委托
22 *
23 * @param delegate 系统状态委托
24 */
25- (void)addDelegate:(id<NIMSystemStateDelegate>)delegate;
26
27/**
28 * 移除系统状态委托
29 *
30 * @param delegate 系统状态委托
31 */
32- (void)removeDelegate:(id<NIMSystemStateDelegate>)delegate;
33
34@end
35
36/**
37 * 系统状态委托
38 */
39@protocol NIMSystemStateDelegate <NSObject>
40
41@optional
42
43/**
44 * 磁盘空间已满
45 *
46 * @param error 错误对象
47 * @discussion 此委托方法在app生命周期内仅会调用一次
48 */
49- (void)onDiskFull:(NSError *)error;
50
51@end
52
53NS_ASSUME_NONNULL_END