MediaPlayerCacheManager class abstract

This class provides methods for managing cached media files in the media player.

Constructors

MediaPlayerCacheManager()

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

enableAutoRemoveCache(bool enable) → Future<void>
Enables or disables the automatic cache file removal feature.
getCacheDir(int length) → Future<String>
Gets the storage path of the cached files.
getCacheFileCount() → Future<int>
Gets the total number of currently cached media files.
getMaxCacheFileCount() → Future<int>
Gets the maximum number of cache files set.
getMaxCacheFileSize() → Future<int>
Gets the maximum total cache size of cache files set.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllCaches() → Future<void>
Deletes all cached media files in the media player.
removeCacheByUri(String uri) → Future<void>
Deletes a specified cached media file.
removeOldCache() → Future<void>
Deletes the least recently used cached media file in the media player.
setCacheDir(String path) → Future<void>
Sets the storage path for media files to be cached.
setMaxCacheFileCount(int count) → Future<void>
Sets the maximum number of cached media files.
setMaxCacheFileSize(int cacheSize) → Future<void>
Sets the upper limit of the total cache size for media files.
toString() → String
A string representation of this object.
inherited

Operators

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