Help Center/ Meeting/ Client SDK Reference/ iOS SDK/ API Reference/ UI Customization/ Customizing a Watermark for a Meeting
Updated on 2023-03-23 GMT+08:00

Customizing a Watermark for a Meeting

screenShareCoverView

API Description

This API is used to set a watermark during screen or whiteboard sharing. The watermark is superimposed on the shared content at the receiving end. The watermark is displayed only after it is configured on the server.

1. Watermarks can be added to images presented to recipients during desktop, program, and whiteboard sharing. The custom watermarks take effect only when the watermark function is enabled on the server. If you do not customize a watermark, the mobile number, email address, meeting ID, and nickname are displayed in descending order by priority by default. The font transparency is 10%.

2. After you customize a watermark, a pop-up message is displayed when you take a screenshot. If you do not need this function, disable it during initialization.

Figure 1 Example of setting a watermark

Precautions

  1. Do not add full-screen gestures.
  2. The custom view is a full-screen view above the shared view. Set a proper transparency for the custom view to prevent the shared information from being covered.
  3. Set enablePromptUserScreenshot during SDK initialization to determine whether to enable the custom pop-up prompt.

Method Definition

1
- (UIView *)screenShareCoverView;

Parameter Description

None

Return Values

None

Sample Code

1
2
3
4
5
6
7
/// Set a watermark for screen or whiteboard sharing. Do not add full-screen gestures.
- (UIView *)screenShareCoverView {
    UIImageView *coverImgView = [[UIImageView alloc] init];
    coverImgView.image = [UIImage imageNamed:@"img"];
    coverImgView.alpha = 0.2;
    return coverImgView;
}