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.
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); } } }); |
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