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

Leaving a Meeting

1
HWMSdk.getOpenApi.leaveConf(HwmCallback<Integer> callback)

API Description

This API is used to leave a meeting.

Precautions

  1. Do not call this API if you are not in a meeting.
  2. If this API is called to leave a meeting, the meeting will not end. You can join the meeting again when the meeting is still in progress.

Method Definition

1
2
3
4
5
    /**
     * Leaves a meeting.
     * @param callback Indicates the result callback.
     */
    void leaveConf(HwmCallback<Integer> callback);

Parameter Description

None

Return Values

None

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
        HWMSdk.getOpenApi(HWMBizSdk.getApplication()).leaveConf(new HwmCallback<Integer>() {
            @Override
            public void onSuccess(Integer integer) {
                Toast.makeText(HWMBizSdk.getApplication(), "You have left the meeting.", Toast.LENGTH_SHORT)
                    .show();
            }

            @Override
            public void onFailed(int retCode, String desc) {
                Toast.makeText(HWMBizSdk.getApplication(), "Failed to leave the meeting: " + retCode + " " + desc, Toast.LENGTH_SHORT)
                    .show();
            }
        });