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

Interrupting Sharing

onSelfStartShareIntercept:

API Description

This API is used to interrupt sharing.

Precautions

None

Method Definition

- (void)onSelfStartShareIntercept:(void(^)(HWMShareInterceptInfo *shareIntercept))callback;

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 * _Nonnull))callback {
    HWMShareInterceptInfo *model = [[HWMShareInterceptInfo alloc] init];
    model.isInterrupt = YES;
    model.interruptReason = @"reason";
    callback(model);
}