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

Canceling a Recurring Meeting

cancelSubCycleWithParam

API Description

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

Precautions

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

Method Definition

1
- (void)cancelSubCycleWithParam:(HWMSDKCancelSubCycleConfParamModel *_Nonnull)param callback:(_Nonnull HWMSDKCompleteHandler)callback

Parameter Description

Table 1 HWMSDKCancelSubCycleConfParamModel parameter description

Parameter

Mandatory

Type

Description

confId

Yes

NSString *

Meeting ID.

subConfID

Yes

NSString *

Recurring meeting ID.

endOnlineConf

Yes

BOOL

Whether to end an ongoing meeting.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
/// Cancel a recurring meeting.
- (void)confirmCancelSubConf {
    HWMSDKCancelSubCycleConfParamModel *cancelParma = [[HWMSDKCancelSubCycleConfParamModel alloc] init];
    cancelParma.confId = confId;
    cancelParma.subConfID = subConfID;
    cancelParma.endOnlineConf = YES;
    [[HWMBizSdk getBizOpenApi] cancelSubCycleWithParam:cancelParma callback:^(NSError * _Nullable error, id  _Nullable result) {
        NSString *tips = !error ? @"Meeting canceled." : @"Cancel meeting failed.";
        [UIUtil showMessage:tips error:error];
    }];
}