NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatLoginParam.h
浏览该文件的文档.
1//
2// NIMQChatLoginParam.h
3// NIMSDK
4//
5// Created by Netease.
6// Copyright © 2022 Netease. All rights reserved.
7//
8#import <Foundation/Foundation.h>
9
10NS_ASSUME_NONNULL_BEGIN
11
12typedef NS_ENUM(NSInteger, NIMQChatLoginAuthType) {
15};
16
17/**
18 * 动态token block
19 */
20typedef NSString*_Nonnull(^NIMProvideQChatDynamicTokenHandler)(NSString * __nullable account);
21
22/**
23 * 登录信息
24 */
25@interface NIMQChatLoginParam : NSObject
26
27/**
28 * 鉴权方式
29 * 0:最初的loginToken的校验方式;
30 * 1:基于appSecret计算的token鉴权方式;
31 */
32@property(nonatomic, assign) NIMQChatLoginAuthType authType;
33
34/**
35 * 动态token回调
36 */
38
39@end
40
41NS_ASSUME_NONNULL_END
NSString *_Nonnull(^ NIMProvideQChatDynamicTokenHandler)(NSString *__nullable account)
Definition: NIMQChatLoginParam.h:20
NIMQChatLoginAuthType
Definition: NIMQChatLoginParam.h:12
@ NIMQChatLoginAuthTypeDynamicToken
Definition: NIMQChatLoginParam.h:14
@ NIMQChatLoginAuthTypeDefault
Definition: NIMQChatLoginParam.h:13
Definition: NIMQChatLoginParam.h:26
NIMProvideQChatDynamicTokenHandler dynamicTokenHandler
Definition: NIMQChatLoginParam.h:37
NIMQChatLoginAuthType authType
Definition: NIMQChatLoginParam.h:32