MediaPlayerCacheManager class abstract
This class provides methods to manage cached media files.
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
-
enableAutoRemoveCache(
bool enable) → Future< void> - Sets whether to delete cached media files automatically.
-
getCacheDir(
int length) → Future< String> - Gets the storage path of the cached media files.
-
getCacheFileCount(
) → Future< int> - Gets the number of media files that are cached.
-
getMaxCacheFileCount(
) → Future< int> - Gets the maximum number of media files that can be cached.
-
getMaxCacheFileSize(
) → Future< int> - Gets the maximum size of the aggregate storage space for cached media files.
-
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 cached media file.
-
removeOldCache(
) → Future< void> - Deletes a cached media file that is the least recently used.
-
setCacheDir(
String path) → Future< void> - Sets the storage path for the media files that you want to cache.
-
setMaxCacheFileCount(
int count) → Future< void> - Sets the maximum number of media files that can be cached.
-
setMaxCacheFileSize(
int cacheSize) → Future< void> - Sets the maximum size of the aggregate storage space for cached media files.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited