Package-level declarations

Types

Link copied to clipboard
actual typealias Bitmap = android.graphics.Bitmap
expect class Bitmap

A grid of pixels.

Link copied to clipboard
actual class BitmapImage

An Image backed by an Android Bitmap.

expect class BitmapImage : Image

A special implementation of Image that's backed by a Bitmap.

actual class BitmapImage : Image

An Image backed by a Skia Bitmap.

Link copied to clipboard
actual typealias Canvas = android.graphics.Canvas
expect class Canvas

A graphics surface that can be drawn on.

Link copied to clipboard

Registry for all the components that an ImageLoader uses to fulfil image requests.

Link copied to clipboard

An Image backed by an Android Drawable.

Link copied to clipboard
actual abstract class EventListener
expect abstract class EventListener : ImageRequest.Listener

A listener for tracking the progress of an image request. This class is useful for measuring analytics, performance, or other metrics tracking.

actual abstract class EventListener : ImageRequest.Listener
Link copied to clipboard
class Extras

A map of key/value pairs to support extensions.

Link copied to clipboard
interface Image

An image that can be drawn on a canvas.

Link copied to clipboard

A Drawable backed by a generic Image.

Link copied to clipboard
interface ImageLoader

A service class that loads images by executing ImageRequests. Image loaders handle caching, data fetching, image decoding, request management, memory management, and more.

Link copied to clipboard
actual typealias PlatformContext = Context
expect abstract class PlatformContext

Represents a platform-specific context that acts as an interface to global information about an application environment.

actual abstract class PlatformContext
Link copied to clipboard
class Uri

A uniform resource locator. See RFC 3986.

Properties

Link copied to clipboard

Returns the URI's Uri.path formatted according to the URI's native Uri.separator.

Link copied to clipboard

Return the separate segments of the Uri.path.

Functions

Link copied to clipboard
fun <Error class: unknown class>.asDrawable(resources: Resources): Drawable
Link copied to clipboard
fun Drawable.asImage(): <Error class: unknown class>
fun Drawable.asImage(shareable: Boolean): <Error class: unknown class>
expect fun Bitmap.asImage(shareable: Boolean = true): BitmapImage

Convert a Bitmap into an Image.

Link copied to clipboard
fun <Error class: unknown class>.bitmapFactoryExifOrientationStrategy(strategy: ExifOrientationStrategy): <Error class: unknown class>

Sets the strategy for handling the EXIF orientation flag for images decoded by BitmapFactoryDecoder.

Link copied to clipboard
fun <Error class: unknown class>.bitmapFactoryMaxParallelism(maxParallelism: Int): <Error class: unknown class>

Sets the maximum number of parallel BitmapFactory or ImageDecoder decode operations at once.

Link copied to clipboard

Execute the request and block the current thread until it completes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Create a new ImageLoader without configuration.

Link copied to clipboard
Link copied to clipboard
operator fun Extras.plus(other: Extras): Extras
Link copied to clipboard

Enables adding all components (fetchers and decoders) that are supported by the service locator to this ImageLoader's ComponentRegistry. All of Coil's first party decoders and fetchers are supported.

Link copied to clipboard
fun <Error class: unknown class>.toAndroidUri(): Uri
Link copied to clipboard
fun <Error class: unknown class>.toBitmap(width: Int, height: Int, config: Bitmap.Config): Bitmap
expect fun Image.toBitmap(width: Int = this.width, height: Int = this.height): Bitmap

Convert an Image into a Bitmap.

actual fun Image.toBitmap(width: Int, height: Int): Bitmap
fun Image.toBitmap(width: Int, height: Int, colorType: ColorType, colorAlphaType: ColorAlphaType, colorSpace: ColorSpace?): Bitmap
Link copied to clipboard
fun Uri.toCoilUri(): <Error class: unknown class>
Link copied to clipboard
fun String.toUri(separator: String = Path.DIRECTORY_SEPARATOR): Uri

Parse this String into a Uri. This method will not throw if the URI is malformed.

Link copied to clipboard
fun Uri(scheme: String? = null, authority: String? = null, path: String? = null, query: String? = null, fragment: String? = null, separator: String = Path.DIRECTORY_SEPARATOR): Uri

Create a Uri from parts without parsing.