# WatermarkTimestamp (/zh-CN/api-reference/rtc/flutter/class-watermarktimestamp)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_watermarktimestamp__prototype"></a>

```dart
class WatermarkTimestamp implements AgoraSerializable {
  const WatermarkTimestamp({this.fontSize, this.fontFilePath, this.strokeWidth, this.format});
  final int? fontSize;
  final String? fontFilePath;
  final int? strokeWidth;
  final String? format;
  factory WatermarkTimestamp.fromJson(Map<String, dynamic> json) => _$WatermarkTimestampFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$WatermarkTimestampToJson(this);
}
```

<a id="class_watermarktimestamp__detailed_desc"></a>

:::info[自从]
自 v6.6.2 版本新增。
:::

:::note
注： 仅适用于 Linux 平台。
:::

<a id="class_watermarktimestamp__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="fontsize"></a>
<Parameter name="fontSize">

时间戳字体的大小。默认值为 10。

</Parameter>
<a id="fontfilepath"></a>
<Parameter name="fontFilePath">

时间戳字体文件的路径。默认值为 `NULL`。字体文件需为 .ttf 格式。如果未设置，SDK 会使用系统默认字体（如果可用）。

:::note
注： 如果异步使用，请将路径复制到不会被释放的内存中。
:::

</Parameter>
<a id="strokewidth"></a>
<Parameter name="strokeWidth">

时间戳描边的宽度。默认值为 1。

</Parameter>
<a id="format"></a>
<Parameter name="format">

时间戳的格式。默认值为 `%F %X`。格式遵循 C 标准库函数 `strftime` 的规范，详见 `strftime`。

:::note
注： 如果异步使用，请将格式字符串复制到不会被释放的内存中。
:::

</Parameter>
</ParameterList>
