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

Canceling a Recurring Meeting

API Description

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

Precautions

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

Method Definition

1
2
3
4
5
6
7
8
    /**
     * Cancels a recurring meeting.
     *
     * @param cycleConfId Indicates the ID of a recurring meeting series.
     * @param subCycleConfId Indicates the ID of a recurring meeting.
     * @param hwmCallback Indicates the result callback.
     */
   void cancelSubCycleConf(String cycleConfId, String subCycleConfId, SdkCallback<Void> hwmCallback);

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

cycleConfId

Yes

String

Recurring meeting series ID.

subCycleConfId

Yes

String

Recurring meeting ID.

Sample Code

 HWMBizSdk.getBizOpenApi().cancelSubCycleConf(cycleConfId, item.getConfId(), new SdkCallback<Void>() {
            @Override
            public void onFailed(SDKERR retCode) {
                HCLog.i(TAG, "cancel sub cycle conf onFailed " + retCode);
                String err = ErrorMessageFactory.create(retCode);
                if (TextUtils.isEmpty(err)) {
                    err = DemoUtil.getResContext().getString(R.string.hwmconf_cancel_fail_tip);
                }
                DemoUtil.showToast("cancel sub cycle conf failed: " + err);
                confListAdapter.notifyDataSetChanged();
            }

            @Override
            public void onSuccess(Void aVoid) {
                DemoUtil.showToast("cancel sub cycle conf success");
                updateConfDetail(cycleConfId);
            }
        });
    }