NIMSDK-iOS
|
类 | |
protocol | <NIMLoginManagerDelegate> |
protocol | <NIMLoginManager> |
宏定义 | |
#define | NIMDeprecated(msg) __attribute__((deprecated(msg))) |
类型定义 | |
typedef void(^ | NIMLoginGetServerTimeHandle) (NSError *__nullable error, NIMServerTime *time) |
枚举 | |
enum | NIMLoginStep { NIMLoginStepLinking = 1 , NIMLoginStepLinkOK , NIMLoginStepLinkFailed , NIMLoginStepLogining , NIMLoginStepLoginOK , NIMLoginStepLoginFailed , NIMLoginStepSyncing , NIMLoginStepSyncOK , NIMLoginStepLoseConnection , NIMLoginStepNetChanged , NIMLoginStepLogout } |
enum | NIMSDKAuthMode { NIMSDKAuthModeUndefined = 0 , NIMSDKAuthModeIM , NIMSDKAuthModeChatroom } |
enum | NIMSDKAuthType { NIMSDKAuthTypeDefault = 0 , NIMSDKAuthTypeDynamicToken = 1 , NIMSDKAuthTypeThirdParty = 2 } |
enum | NIMKickReason { NIMKickReasonByClient = 1 , NIMKickReasonByServer = 2 , NIMKickReasonByClientManually = 3 } |
enum | NIMMultiLoginType { NIMMultiLoginTypeInit = 1 , NIMMultiLoginTypeLogin = 2 , NIMMultiLoginTypeLogout = 3 } |
变量 | |
NS_ASSUME_NONNULL_BEGIN typedef void(^ | NIMLoginHandler )(NSError *__nullable error) |
#define NIMDeprecated | ( | msg | ) | __attribute__((deprecated(msg))) |
typedef void(^ NIMLoginGetServerTimeHandle) (NSError *__nullable error, NIMServerTime *time) |
查询服务端时间Block
error | 执行结果,如果成功error为nil |
enum NIMKickReason |
enum NIMLoginStep |
登录步骤枚举
enum NIMMultiLoginType |
enum NIMSDKAuthMode |
SDK 认证模式
枚举值 | |
---|---|
NIMSDKAuthModeUndefined | 未定义 @discussion SDK 未调用任何登录接时或在 IM/聊天室 模式下调用 logout 接口后变化为未定义模式 |
NIMSDKAuthModeIM | 通过 IM 服务器鉴权 @discussion 调用 NIMLoginManager login/autoLogin 接口进行登录即为 IM 鉴权模式 |
NIMSDKAuthModeChatroom | 聊天室单独鉴权 @discussion 调用 NIMChatroomManager 进入聊天室接口时设置 NIMChatroomIndependentMode 即为聊天室单独聊天鉴权模式 |
enum NIMSDKAuthType |
NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMLoginHandler) (NSError *__nullable error) | ( | NSError *__nullable | error | ) |
登录服务相关Block
error | 执行结果,如果成功error为nil |