Package 

Object SubSamplingImageSource.Companion

    • Method Detail

      • file

        @Stable() final SubSamplingImageSource )>file(Path path, ImageBitmap preview, <ERROR CLASS> onClose)

        An image stored on the device file system. This can be used with image loading libraries that store cached images on disk.

        Parameters:
        preview - See SubSamplingImageSource.preview.
        onClose - Called when the image is no longer visible.
      • asset

        @Stable() final SubSamplingImageSource asset(String name, ImageBitmap preview)

        An image stored in src/main/assets.

        Parameters:
        preview - See SubSamplingImageSource.preview.
      • contentUriOrNull

        @Stable() final SubSamplingImageSource contentUriOrNull(Uri uri, ImageBitmap preview)

        An image exposed by a content provider. A common use-case for this would be to display images shared by other apps.

        Parameters:
        preview - See SubSamplingImageSource.preview.
      • rawSource

        @Stable() final SubSamplingImageSource )>rawSource(Function0<Source> source, ImageBitmap preview, <ERROR CLASS> onClose)

        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.

        Parameters:
        preview - See SubSamplingImageSource.preview.
        onClose - Called when the image is no longer visible.