Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ Meeting Control/ Setting the Sharing Permission
Updated on 2024-07-30 GMT+08:00

Setting the Sharing Permission

setShareScreenPermission

API Description

This API is used to set the sharing permission.

Precautions

The return value of this API indicates whether the API is successfully called.

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

Table 2 Return value

Type

Description

BOOL

If the API is called successfully, YES is returned. If the API fails to be called, NO is returned.

Sample Code

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