file
fun file(path: Path, preview: ImageBitmap? = null, onClose: Closeable? = null): SubSamplingImageSource
An image stored on the device file system. This can be used with image loading libraries that store cached images on disk.
Return
The returned value is stable and does not need to be remembered.
Parameters
preview
on Close
Called when the image is no longer visible. This is useful for files stored in, say, an LRU cache that is capable of locking open files to prevent them from getting discarded.