MethodChannelWatermarkKit class

An implementation of WatermarkKitPlatform that uses method channels.

Inheritance

Constructors

MethodChannelWatermarkKit()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelVideo(String taskId) → Future<void>
override
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.
override
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.
override
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.
override
getPlatformVersion() → Future<String?>
override
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