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

Setting the Sharing Permission

setShareScreenPermission

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
- (BOOL)setShareScreenPermission:(BOOL)isPermission;

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

isPermission

Yes

bool

Whether sharing is allowed.

Return Values

None

Sample Code

1
2
/// Set the sharing permission.
[[HWMSdk getOpenApi] setShareScreenPermission:isPermission];