Updated on 2023-03-23 GMT+08:00

Setting the Sharing Permission

setShareScreenPermission

HWMBizSdk.getBizOpenApi().setShareScreenPermission(boolean hasPermission)

API Description

This API is used to set the sharing permission.

Precautions

The return value of the API only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
2
3
4
5
/**
* Specifies whether the local device has the sharing permission.
 * @param hasPermission
 */
void setShareScreenPermission(boolean hasPermission);

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

hasPermission

Yes

boolean

Whether sharing is allowed.

Return Values

None

Sample Code

1
HWMBizSdk.getBizOpenApi().setShareScreenPermission(true);