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

Scenario 8: Logout

Description

You can log out of Huawei Cloud Meeting.

Service Process

  1. Call the API.

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

  2. Implement the callback.

    Process the result in the callback.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
HWMSdk.getOpenApi(getActivity()).logout(new HwmCallback<LoginCompletedResult>() {             
      @Override             
      public void onSuccess(LoginCompletedResult result) {                 
          DemoUtil.showToast(getContext(), "Logout succeeded");
      }              
      @Override             
      public void onFailed(int retCode, String desc) {                 
          DemoUtil.showToast(getContext(), "Logout failed: " + retCode +"; " + desc);
      }         
});