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
| readwritenonatomicassign

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
| readwritenonatomicassign

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
| readwritenonatomicassign

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.