9#import <Foundation/Foundation.h>
13#define NIMDeprecated(msg) __attribute__((deprecated(msg)))
18NS_ASSUME_NONNULL_BEGIN
158@protocol NIMLoginManagerDelegate <NSObject>
228- (void)onAutoLoginFailed:(NSError *)error;
234- (void)onMultiLoginClientsChanged;
260- (void)onTeamUsersSyncFinished:(BOOL)success;
273- (void)onSuperTeamUsersSyncFinished:(BOOL)success;
291- (NSString *)provideDynamicTokenForAccount:(NSString *)account;
298- (int)reconnectDelay;
310@protocol NIMLoginManager <NSObject>
327- (void)login:(NSString *)account
328 token:(NSString *)token
365- (void)login:(NSString *)account
366 token:(NSString *)token
367 authType:(
int)authType
368 loginExt:(NSString *)loginExt
386- (void)autoLogin:(NSString *)account
387 token:(NSString *)token;
448- (NSString *)currentAccount;
491- (void)addDelegate:(
id<NIMLoginManagerDelegate>)delegate;
499- (void)removeDelegate:(
id<NIMLoginManagerDelegate>)delegate;
NIMLoginClientType
Definition: NIMLoginClient.h:17
void(^ NIMLoginGetServerTimeHandle)(NSError *__nullable error, NIMServerTime *time)
Definition: NIMLoginManagerProtocol.h:31
NIMSDKAuthMode
Definition: NIMLoginManagerProtocol.h:89
@ NIMSDKAuthModeChatroom
Definition: NIMLoginManagerProtocol.h:104
@ NIMSDKAuthModeUndefined
Definition: NIMLoginManagerProtocol.h:94
@ NIMSDKAuthModeIM
Definition: NIMLoginManagerProtocol.h:99
NIMLoginStep
Definition: NIMLoginManagerProtocol.h:37
@ NIMLoginStepLoginFailed
Definition: NIMLoginManagerProtocol.h:61
@ NIMLoginStepLoseConnection
Definition: NIMLoginManagerProtocol.h:73
@ NIMLoginStepLoginOK
Definition: NIMLoginManagerProtocol.h:57
@ NIMLoginStepLogout
Definition: NIMLoginManagerProtocol.h:82
@ NIMLoginStepLogining
Definition: NIMLoginManagerProtocol.h:53
@ NIMLoginStepLinkOK
Definition: NIMLoginManagerProtocol.h:45
@ NIMLoginStepLinking
Definition: NIMLoginManagerProtocol.h:41
@ NIMLoginStepNetChanged
Definition: NIMLoginManagerProtocol.h:78
@ NIMLoginStepLinkFailed
Definition: NIMLoginManagerProtocol.h:49
@ NIMLoginStepSyncOK
Definition: NIMLoginManagerProtocol.h:69
@ NIMLoginStepSyncing
Definition: NIMLoginManagerProtocol.h:65
NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMLoginHandler)(NSError *__nullable error)
NIMKickReason
Definition: NIMLoginManagerProtocol.h:122
@ NIMKickReasonByServer
Definition: NIMLoginManagerProtocol.h:130
@ NIMKickReasonByClientManually
Definition: NIMLoginManagerProtocol.h:134
@ NIMKickReasonByClient
Definition: NIMLoginManagerProtocol.h:126
NIMSDKAuthType
Definition: NIMLoginManagerProtocol.h:112
@ NIMSDKAuthTypeThirdParty
Definition: NIMLoginManagerProtocol.h:115
@ NIMSDKAuthTypeDefault
Definition: NIMLoginManagerProtocol.h:113
@ NIMSDKAuthTypeDynamicToken
Definition: NIMLoginManagerProtocol.h:114
NIMMultiLoginType
Definition: NIMLoginManagerProtocol.h:140
@ NIMMultiLoginTypeInit
Definition: NIMLoginManagerProtocol.h:144
@ NIMMultiLoginTypeLogout
Definition: NIMLoginManagerProtocol.h:152
@ NIMMultiLoginTypeLogin
Definition: NIMLoginManagerProtocol.h:148
Definition: NIMLoginClient.h:92
Definition: NIMLoginClient.h:62
Definition: NIMLoginKickoutResult.h:16
Definition: NIMLoginClient.h:124