更新时间:2025-04-17 GMT+08:00
拦截发起共享定制
onSelfStartShareIntercept:
接口描述
该接口用于自定义拦截发起共享。
注意事项
无
方法定义
- (void)onSelfStartShareIntercept:(void(^)(HWMShareInterceptInfo *shareIntercept))callback;
参数描述
参数 |
类型 |
描述 |
---|---|---|
isInterrupt |
BOOL |
是否中断共享 |
interruptReason |
NSString * |
中断原因 |
返回值
无
示例代码
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo * _Nonnull))callback { HWMShareInterceptInfo *model = [[HWMShareInterceptInfo alloc] init]; model.isInterrupt = YES; model.interruptReason = @"reason"; callback(model); }
父主题: 界面定制