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

Scenario 8: Logout

Description

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

Service Process

If you need to log out using the SDK, call the logout API and then implement the callback.

  1. Call the API.

    1. Call the logout API to log out of Huawei Cloud Meeting.

  2. Implement the callback.

    Implement the callback.

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