Agora RTC Objective-C API Reference Refactor

Properties
WatermarkOptions Class Reference

Inherits <NSObject>.

## Properties
BOOL | visibleInPreview
CGRect | positionInLandscapeMode
CGRect | positionInPortraitMode

## Detailed Description

The options of the watermark image to be added.

## Property Documentation

## ◆ visibleInPreview

- (BOOL) visibleInPreview
| read write nonatomic assign

Sets whether or not the watermark image is visible in the local video preview:

- YES: (Default) The watermark image is visible in preview.
- NO: The watermark image is not visible in preview.

## ◆ positionInLandscapeMode

- (CGRect) positionInLandscapeMode
| read write nonatomic assign

The watermark position in landscape mode of Rotate the Video. This parameter contains the following members:

- `x`: The horizontal offset of the watermark from the top-left corner.
- `y`: The vertical offset of the watermark from the top-left corner.
- `width`: The width (pixel) of the watermark region.
- `height`: The height (pixel) of the watermark region.

## ◆ positionInPortraitMode

- (CGRect) positionInPortraitMode
| read write nonatomic assign

The watermark position in portrait mode of Rotate the Video. This parameter contains the following members:

- `x`: The horizontal offset of the watermark from the top-left corner.
- `y`: The vertical offset of the watermark from the top-left corner.
- `width`: The width (pixel) of the watermark region.
- `height`: The height (pixel) of the watermark region.