Setting the Sharing Permission
Function
This API is used to set the sharing permission. By default, sharing is allowed.
Function Prototype
setShareScreenPermission(permission: SharePermission, onSetShareScreenPermissionResult?: (ret: SDKERR, reason: string) => void): voidsetShareScreenPermission(permission: SharePermission, onSetShareScreenPermissionResult?: (ret: SDKERR, reason: string) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
permission | Yes | SharePermission | Permission type information. |
onSetShareScreenPermissionResult | Yes | (ret: SDKERR, reason: string) => void | Callback of setting the sharing permission. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
isAllowed | Yes | boolean | Whether to disable sharing. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string) => void
Parameter | Type | Description |
---|---|---|
ret | For details about SDKERR, see Error Code Reference. | Error code. |
reason | string | Error description. |
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