Help Center/ Meeting/ Client SDK Reference/ Android SDK/ APIs/ Basic Settings/ Customizing Sharing Interception
Updated on 2025-04-18 GMT+08:00

Customizing Sharing Interception

You can configure the custom sharing interception policy in OpenSDKConfig.

Application Scenarios

When a participant initiates sharing or receives a sharing invitation, you can determine whether to intercept the sharing.

Precautions

sdkConfig takes effect only when this configuration is passed during SDK initialization.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sdkConfig.setShareInterceptHandle(new IShareInterceptHandle() {
    @Override
    public void onSelfStartShareIntercept(IHwmCallback<HWMShareInterceptInfo> callback) {
        if (callback != null) {
            HWMShareInterceptInfo HWMShareInterceptInfo = new HWMShareInterceptInfo();
            HWMShareInterceptInfo.setInterrupt(true);
            HWMShareInterceptInfo.setInterruptReason("intercepted by custom");
            callback.onSuccess(HWMShareInterceptInfo);
          }
    }
});