华为云会议 MEETING-拦截发起共享定制:onSelfStartShareIntercept

时间:2025-03-28 16:24:12

onSelfStartShareIntercept

接口描述

该接口用于自定义拦截发起共享。

方法定义

1
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock;

注意事项

SDK初始化时订阅HWMShareInterceptHandler代理对象或者在需要处理的界面设置代理对象。

参数描述

表1 HWMShareInterceptInfo说明

参数

类型

描述

isInterrupt

BOOL

是否中断共享。

interruptReason

NSString *

中断原因。

返回值

示例代码

- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock {
    HWMShareInterceptInfo  *model = [[HWMShareInterceptInfo alloc] init];
    model.isInterrupt = YES;
    model.interruptReason = @"reason";
    completionBlock(model);
}
support.huaweicloud.com/sdkreference-meeting/toctopics/zh-cn_topic_0000002258949753.html