Updated on 2025-05-29 GMT+08:00

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

Table 1 HWMShareInterceptInfo 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);
}