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

Canceling a Meeting

API Description

This API is used to cancel a scheduled meeting that has not been started.

Precautions

Call this API before a meeting starts. If the meeting is already in progress, calling this API is invalid.

Method Definition

1
2
3
4
5
6
7
    /**
     * Cancels a meeting.
     *
     * @param confId Indicates the meeting ID.
     * @param hwmCallback Indicates the result callback.
     */
   void cancelConf(String confId, HwmCallback<Integer> hwmCallback);

Parameter Description

Table 1 Parameters

Parameter

Mandatory

Type

Description

confId

Yes

String

Meeting ID.

Sample Code

HWMBizSdk.getBizOpenApi().cancelConf(item.getConfId(), new HwmCallback<Integer>() {
	@Override
	public void onSuccess(Integer result) {
		dismissLoading();
		DemoUtil.showToast("Meeting canceled");
	}

	@Override
	public void onFailed(int retCode, String desc) {
		dismissLoading();
		dismiss();
		String err = ErrorMessageFactory.create(Utils.getApp(), retCode);
		if (TextUtils.isEmpty(err)) {
			err = Utils.getApp().getString(R.string.hwmconf_cancel_fail_tip);
		}
		DemoUtil.showToast("Failed to cancel the meeting: "+ err);
	}
});