ConnectionEventHandler constructor Null safety
- {VoidCallback? onConnected,
- VoidCallback? onDisconnected,
- VoidCallback? onUserDidLoginFromOtherDevice,
- VoidCallback? onUserDidRemoveFromServer,
- VoidCallback? onUserDidForbidByServer,
- VoidCallback? onUserDidChangePassword,
- VoidCallback? onUserDidLoginTooManyDevice,
- VoidCallback? onUserKickedByOtherDevice,
- VoidCallback? onUserAuthenticationFailed,
- VoidCallback? onTokenWillExpire,
- VoidCallback? onTokenDidExpire}
The chat connection listener callback.
Param onConnected The SDK connects to the chat server successfully callback.
Param onDisconnected The SDK disconnect from the chat server callback.
Param onUserDidLoginFromOtherDevice Current user account is logged in to another device callback.
Param onUserDidRemoveFromServer Current chat user is removed from the server callback.
Param onUserDidForbidByServer Current chat user is forbid from the server callback.
Param onUserDidChangePassword Current chat user is changed password callback.
Param onUserDidLoginTooManyDevice Current chat user logged to many devices callback.
Param onUserKickedByOtherDevice Current chat user kicked by other device callback.
Param onUserAuthenticationFailed Current chat user authentication failed callback.
Param onTokenWillExpire The token is about to expire callback.
Param onTokenDidExpire The token has expired callback.
Implementation
ConnectionEventHandler({
this.onConnected,
this.onDisconnected,
this.onUserDidLoginFromOtherDevice,
this.onUserDidRemoveFromServer,
this.onUserDidForbidByServer,
this.onUserDidChangePassword,
this.onUserDidLoginTooManyDevice,
this.onUserKickedByOtherDevice,
this.onUserAuthenticationFailed,
this.onTokenWillExpire,
this.onTokenDidExpire,
});