# WatermarkConfig (/zh-CN/api-reference/rtc/macos/class-watermarkconfig)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```objc
__attribute__((visibility("default"))) @interface WatermarkConfig : NSObject
@property(copy, nonatomic) NSString* _Nonnull id;
@property(assign, nonatomic) WatermarkType type;
@property(strong, nonatomic) WatermarkBuffer* _Nullable buffer;
@property(strong, nonatomic) NSURL *_Nullable imageUrl;
@property(strong, nonatomic) WatermarkOptions* _Nonnull options;
@end
```
:::info[自从]
自 v4.6.0 版本新增。
:::
:::note
注: 设置水印类型时,`type` 需与实际提供的数据字段相匹配,不可同时传入多种类型的水印:若 `type` 为 `buffer`,则仅支持设置 `buffer` 字段;若 `type` 为 `image`,则仅支持设置 `imageUrl` 字段。
:::
## 属性 [#属性]
水印的唯一标识符。
水印的类型,详见 [WatermarkType](/zh-CN/api-reference/rtc/macos/enum-watermarksourcetype)。
水印图像的缓冲数据。详见 [WatermarkBuffer](/zh-CN/api-reference/rtc/macos/class-watermarkbuffer)。
水印图像的 URL。
水印的显示选项。详见 [WatermarkOptions](/zh-CN/api-reference/rtc/macos/class-watermarkoptions)。