Updated on 2024-07-30 GMT+08:00

Logout

logout

API Description

This API is used to log out of a meeting account.

Precautions

  1. Call this API only when you have logged in.
  2. error: Error information. nil: Success.

Method Definition

1
- (void)logout:(_Nonnull HWMSDKLogoutCompleteHandler)callback;

Parameter Description

None

Return Values

Table 1 HWMLogoutResult description

Parameter

Type

Description

userUuid

NSString *

Account UUID.

account

NSString *

Login account.

thirdAccount

NSString *

Third-party account for login using an app ID.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/// Logout
- (void)logout {
    [[HWMSdk getOpenApi] logout:^(NSError * _Nullable error, HWMLogoutResult * _Nullable result) {
        if (error == nil) {
            NSLog(@"Logout succeeded.");
        } else {
            NSLog(@"Logout failed.");
        }
    }];
}