StreamFileManager
Manages file operations for the Stream Chat SDK, providing utilities for caching, retrieving, and managing files in various cache directories and external storage.
This class handles:
Image caching in a dedicated directory
General file caching in the Stream cache directory
Timestamped cache folders for isolated file storage
Cache cleanup operations
External storage management for photos and videos captured using the SDK
Functions
Clears all cached data including Stream cache, image cache, and timestamped cache folders.
Clears the Stream cache directory.
Clears Stream files from the external storage directories.
Creates a file reference in cache without writing content.
Creates a file for photo capture in the external pictures directory.
Creates a file for video capture in the external movies directory.
Retrieves a file from cache by name.
Returns the directory used for caching images.
Writes data from an InputStream to a cache file.
Writes data from an InputStream to a file in a timestamped cache folder.