MediaManagerPlatform class abstract

The abstract base class for platform-specific implementations of media manager functionality.

This class extends PlatformInterface to ensure a single platform instance exists and to prevent implementation collisions. All platform implementations must extend this class rather than implementing the interface directly.

Inheritance
  • Object
  • PlatformInterface
  • MediaManagerPlatform
Implementers

Constructors

MediaManagerPlatform.new()
Constructs a MediaManagerPlatform.

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

clearImageCache() Future<bool>
Clears any cached image thumbnails/previews.
getAllAudio() Future<List<String>>
Retrieves paths of all audio files on the device.
getAllDocuments() Future<List<String>>
Retrieves paths of all document files on the device.
getAllImages() Future<List<String>>
Retrieves paths of all image files on the device.
getAllVideos() Future<List<String>>
Retrieves paths of all video files on the device.
getAllZipFiles() Future<List<String>>
Retrieves paths of all zip archive files on the device.
getDirectories() Future<List<Map<String, dynamic>>>
Gets a list of available storage directories on the device.
getDirectoryContents(String path) Future<List<Map<String, dynamic>>>
Retrieves contents of a specific directory.
getImagePreview(String path) Future<Uint8List?>
Generates a thumbnail/preview for an image file.
getPlatformVersion() Future<String?>
Retrieves the platform's version string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestMacStoragePermission() Future<bool>
requestStoragePermission() Future<bool>
Requests storage access permission from the user.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MediaManagerPlatform
The default singleton instance of MediaManagerPlatform to use.
getter/setter pair