PlatformChannelService class
Service for communicating with native compression code via platform channels
Constructors
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
-
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 Methods
-
cancelCompression(
String compressionId) → Future< bool> - Cancel compression
-
clearCache(
) → Future< bool> - Clear compression cache
-
compressAudio(
{required String audioPath, required AudioCompressionOptions options}) → Future< String> - Compress audio
-
compressImage(
{required String imagePath, required ImageCompressionOptions options}) → Future< String> - Compress image
-
compressMedia(
MediaFile file, CompressionOptions options, {ProgressCallback? onProgress, String? compressionId}) → Future< CompressionResult> - Compress a media file
-
compressVideo(
{required String videoPath, required VideoCompressionOptions options, String? compressionId}) → Future< String> - Compress video
-
createVideoThumbnail(
String videoPath, {int timeUs = 0, int maxWidth = 320, int maxHeight = 320}) → Future< String?> - Create video thumbnail
-
getMetadata(
String filePath, MediaType type) → Future< MediaFile?> - Get metadata for a media file
-
getRealPath(
String path, String type) → Future< String?> - Get real file path from content URI