Companion
object Companion
Functions
Link copied to clipboard
An image stored in src/main/assets.
Link copied to clipboard
Same as SubSamplingImageSource.contentUriOrNull, but throws an error if the uri is unsupported by ContentResolver.openInputStream.
Link copied to clipboard
An image exposed by a content provider. A common use-case for this would be to display images shared by other apps.
Link copied to clipboard
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.
Link copied to clipboard
fun rawSource(source: () -> Source, preview: ImageBitmap? = null, onClose: Closeable? = null): SubSamplingImageSource
An arbitrary stream that should only be used for images that can't be read directly from the disk. For all other purposes, prefer using SubSamplingImageSource.file instead as it is significantly faster.
Link copied to clipboard
An image stored in src/main/res/drawable* directories.