Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ Account Operations/ Logging Out of Huawei Cloud Meeting
Updated on 2024-07-30 GMT+08:00

Logging Out of Huawei Cloud Meeting

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 HWMSDKCompleteHandler)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.");
        }
    }];
}