NIMLoginManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMLoginManagerProtocol.h |
– onKick:clientType:
Callback for being removed from the server or other clients (Deprecated: use- (void)onKickout:(NIMLoginKickoutResult *)result;)
- (void)onKick:(NIMKickReason)code clientType:(NIMLoginClientType)clientType
Parameters
code |
reason for being kicked off |
---|---|
clientType |
Client type to remove the login |
Discussion
Callback for being removed from the server or other clients
Declared In
NIMLoginManagerProtocol.h
– onKickout:
Callback for being removed from the server or other clients
- (void)onKickout:(NIMLoginKickoutResult *)result
Parameters
result |
reason for being kicked off |
---|
Discussion
Callback for being removed from the server or other clients
Declared In
NIMLoginManagerProtocol.h
– onLogin:
Callback for login
- (void)onLogin:(NIMLoginStep)step
Parameters
step |
Login step |
---|
Discussion
Callback for login
This callback is used to refresh the client UI
Declared In
NIMLoginManagerProtocol.h
– onAutoLoginFailed:
Callback for failed automatic login
- (void)onAutoLoginFailed:(NSError *)error
Parameters
error |
failure reason |
---|
Discussion
Callback for failed automatic login
Automatic reconnection does not require the upper-layer development. However, if some errors must be handled by the upper layer, the SDK will return the result using this method The situations that developers must handle: AppKey unspecified, wrong parameters, incorrect password, multi-device login conflict, banned account, and too frequent operation.
Declared In
NIMLoginManagerProtocol.h
– onMultiLoginClientsChanged
Multi-device login changes
- (void)onMultiLoginClientsChanged
Discussion
Multi-device login changes
Declared In
NIMLoginManagerProtocol.h
– onMultiLoginClientsChangedWithType:
Multi-device login changes
- (void)onMultiLoginClientsChangedWithType:(NIMMultiLoginType)type
Discussion
Multi-device login changes
Declared In
NIMLoginManagerProtocol.h
– onTeamUsersSyncFinished:
Notification for Group users sync completion
- (void)onTeamUsersSyncFinished:(BOOL)success
Parameters
success |
indicates whether the sync operation is completed with success. |
---|
Discussion
Notification for Group users sync completion
Declared In
NIMLoginManagerProtocol.h
– onSuperTeamUsersSyncFinished:
Notification for supergroup users sync completion
- (void)onSuperTeamUsersSyncFinished:(BOOL)success
Parameters
success |
indicates whether the sync operation is completed with success. |
---|
Discussion
Notification for supergroup users sync completion
Declared In
NIMLoginManagerProtocol.h
– provideDynamicTokenForAccount:
Provide dynamic token for login
- (NSString *)provideDynamicTokenForAccount:(NSString *)account
Discussion
Provide dynamic token for login
Declared In
NIMLoginManagerProtocol.h