Updated on 2023-03-23 GMT+08:00

Scenario 9: Logout

Description

The logout API can be used to log out of Huawei Cloud Meeting.

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, id  _Nullable result) {
        if (error == nil) {
            NSLog(@"Logout succeeded.");
        } else {
            NSLog(@"Logout failed.");
        }
    }];
}