WatermarkKitPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • WatermarkKitPlatform
Implementers

Constructors

WatermarkKitPlatform.new()
Constructs a WatermarkKitPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelVideo(String taskId) Future<void>
composeImage({required Uint8List inputImage, required Uint8List watermarkImage, String anchor = 'bottomRight', double margin = 16.0, double widthPercent = 0.18, double opacity = 0.6, String format = 'jpeg', double quality = 0.9, double offsetX = 0.0, double offsetY = 0.0, String marginUnit = 'px', String offsetUnit = 'px'}) Future<Uint8List>
Composes inputImage with watermarkImage and returns encoded bytes.
composeTextImage({required Uint8List inputImage, required String text, String anchor = 'bottomRight', double margin = 16.0, String marginUnit = 'px', double offsetX = 0.0, double offsetY = 0.0, String offsetUnit = 'px', double widthPercent = 0.18, double opacity = 0.6, String format = 'jpeg', double quality = 0.9, String fontFamily = '.SFUI', double fontSizePt = 24.0, int fontWeight = 600, int colorArgb = 0xFFFFFFFF}) Future<Uint8List>
Composes inputImage with a text watermark and returns encoded bytes.
composeVideo({required String inputVideoPath, String? outputVideoPath, Uint8List? watermarkImage, String? text, String anchor = 'bottomRight', double margin = 16.0, String marginUnit = 'px', double offsetX = 0.0, double offsetY = 0.0, String offsetUnit = 'px', double widthPercent = 0.18, double opacity = 0.6, String codec = 'h264', int? bitrateBps, double? maxFps, int? maxLongSide}) Future<VideoTask>
Starts composing a watermark over a video file on iOS. Returns a VideoTask that exposes a progress stream and completion future.
getPlatformVersion() Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance WatermarkKitPlatform
The default instance of WatermarkKitPlatform to use.
getter/setter pair