ARCacheManager class
Manages caching of AR model files with intelligent download and cleanup
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 Properties
-
progressNotifier
→ ValueNotifier<
double> -
Progress notifier for download operations
no setter
Static Methods
-
cleanupUnusedARFiles(
List< String> activeProductIds, Map<String, String> productArUrls, ARPlatform platform) → Future<void> - Cleans up unused AR files based on active product IDs
-
clearAllCache(
) → Future< void> - Simple cleanup method that deletes all cached AR files
-
getCachedFile(
BuildContext context, String fileUrl, String productId, ARPlatform platform, {ARCacheOptions options = const ARCacheOptions()}) → Future< String?> - Gets a cached AR model file or downloads it if not available
-
getCachedFilePath(
String fileUrl, String productId, ARPlatform platform) → Future< String?> - Gets the cached file path if it exists and is valid
-
listAllCachedFiles(
) → Future< List< String> > - Lists all cached AR files for debugging