Delegate Method | Information |
---|---|
onLoginSuccess(user: User) | This method is triggered when the user successfully logs into the CometChat SDK. It returns an Object of the User loggedIn. |
onLoginFailed(error: CometChatException?) | This method is triggered when the user could not successfully log into the CometChat SDK. It returns an Object of the CometChatException. |
onLogoutSuccess() | This method is called when the user successfully logs out from the CometChat SDK. It does not return anything. |
onLogoutFailed(error: CometChatException?) | This method is triggered when the user could not successfully log out of the CometChat SDK. It returns an Object of the CometChatException. |
CometChatLoginDelegate
as CometChat.logindelegate = self
. Here is the example of CometChatLoginDelegate: