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

Ending a Meeting

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

API Description

This API is used by the host to end a meeting.

Precautions

  1. Do not call this API if you are not in a meeting.
  2. Only the host can end a meeting.
  3. After this API is called, the meeting will end and you cannot join the meeting again.

Method Definition

1
2
3
4
5
    /**
     * Ends a meeting.
     * @param callback Indicates the result callback.
     */
    void endConf(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()).endConf(new HwmCallback<Integer>() {
            @Override
            public void onSuccess(Integer integer) {
                Toast.makeText(HWMBizSdk.getApplication(), "Meeting ended.", Toast.LENGTH_SHORT)
                    .show();
            }

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