logout method

FutureOr<int> logout()

@detail After api @author hanchenchen.c @brief Call this method to log out, it is impossible to call methods related to out-of-room messages and end-to-server messages or receive related callbacks. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note - After calling this interface to log out, you must first call login{@link #RTCEngine#login} to log in. - After local users call this method to log out, they will receive the result of the onLogout{@link #IRTCEngineEventHandler#onLogout} callback notification, and remote users will not receive the notification.

Implementation

FutureOr<int> logout() async {
  return await nativeCall('logout', []);
}