华为云会议 MEETING-拦截发起共享定制:onSelfStartShareIntercept
onSelfStartShareIntercept
接口描述
该接口用于自定义拦截发起共享。
方法定义
1
|
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock; |
注意事项
SDK初始化时订阅HWMShareInterceptHandler代理对象或者在需要处理的界面设置代理对象。
参数描述
参数 |
类型 |
描述 |
---|---|---|
isInterrupt |
BOOL |
是否中断共享。 |
interruptReason |
NSString * |
中断原因。 |
返回值
无
示例代码
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock { HWMShareInterceptInfo *model = [[HWMShareInterceptInfo alloc] init]; model.isInterrupt = YES; model.interruptReason = @"reason"; completionBlock(model); }