Interrupting Sharing
onSelfStartShareIntercept
API Description
This API is used to interrupt sharing.
Method Definition
1
|
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock; |
Precautions
Subscribe to the HWMShareInterceptHandler delegate during SDK initialization or set the delegate on the target page.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
isInterrupt |
BOOL |
Whether to interrupt sharing. |
interruptReason |
NSString * |
Interruption reason. |
Return Values
None
Sample Code
- (void)onSelfStartShareIntercept:(void (^)(HWMShareInterceptInfo *interceptInfo))completionBlock { HWMShareInterceptInfo *model = [[HWMShareInterceptInfo alloc] init]; model.isInterrupt = YES; model.interruptReason = @"reason"; completionBlock(model); }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot