NIMSDK-iOS
载入中...
搜索中...
未找到
NIMCustomizedAPIManagerProtocol.h
浏览该文件的文档.
1//
2// NIMCustomizedAPIManagerProtocol.h
3// NIMSDK
4//
5// Created by cqu227hk on 2022/12/08.
6// Copyright © 2022 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14
15/**
16 * 定制化api调用统一入口协议定义
17 */
18@protocol NIMCustomizedAPIManager <NSObject>
19
20/**
21 * 调用定制化api
22 *
23 * @param param api调用参数,包括 api name/param等信息 详见NIMGenericTypeAPICallParam定义
24 * @param completion api扫行结果回调,包括error/result等信息 详见NIMNIMGenericTypeAPICallInvokeCallback定义
25 */
26- (void)invokeAPI:(NIMGenericTypeAPICallParam* __nonnull)param
27 completion:(nullable NIMGenericTypeAPICallInvokeCallback)completion;
28
29@end
30
31NS_ASSUME_NONNULL_END
void(^ NIMGenericTypeAPICallInvokeCallback)(NSError *__nullable error, NIMGenericTypeAPICallResult *__nullable result)
Definition: NIMGenericTypeAPIDefine.h:64
Definition: NIMGenericTypeAPIDefine.h:14