WatermarkLiteral
Used to configure text watermark.
class WatermarkLiteral implements AgoraSerializable {
const WatermarkLiteral(
{this.fontSize, this.strokeWidth, this.wmLiteral, this.fontFilePath});
@JsonKey(name: 'fontSize')
final int? fontSize;
@JsonKey(name: 'strokeWidth')
final int? strokeWidth;
@JsonKey(name: 'wmLiteral')
final String? wmLiteral;
@JsonKey(name: 'fontFilePath')
final String? fontFilePath;
factory WatermarkLiteral.fromJson(Map<String, dynamic> json) =>
_$WatermarkLiteralFromJson(json);
@override
Map<String, dynamic> toJson() => _$WatermarkLiteralToJson(this);
}
- Since
- Available since v4.6.2.
Note: (Linux only)
Properties
- fontSize
- Font size of the text. Default is 10.
- strokeWidth
- Stroke width of the text. Default is 1.
- wmLiteral
- Text content of the watermark. Default is
NULL.Note: If used asynchronously, copy the string to memory that will not be released. - fontFilePath
- Path to the font file. Default is
NULL. The font file should be in .ttf format. If not set, the SDK uses the system default font (if available).Note: If used asynchronously, copy the string to memory that will not be released.