logout method
@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
Future<int?> logout() async {
$a() => ($instance as $p_a.RTCEngine).logout();
$i() => ($instance as $p_i.ByteRTCEngine).logout();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}