Package-level declarations

Types

Link copied to clipboard
actual class FakeImage(val width: Int, val height: Int, val size: Long, val shareable: Boolean, val color: Int) : Image
expect class FakeImage(width: Int = 100, height: Int = 100, size: Long = 4L * width * height, shareable: Boolean = true, color: Int = 0) : Image
actual class FakeImage(val width: Int, val height: Int, val size: Long, val shareable: Boolean, val color: Int) : Image
Link copied to clipboard

An ImageLoader interceptor that intercepts all incoming requests before they're fetched and decoded by the image loader's real image engine. This class is useful for overriding an image loader's responses in tests:

Functions

Link copied to clipboard
fun <Error class: unknown class>.default(drawable: Drawable): <Error class: unknown class>
Link copied to clipboard
fun FakeImageLoaderEngine(drawable: Drawable): <Error class: unknown class>

Create a new FakeImageLoaderEngine that returns drawable for all requests.

Create a new FakeImageLoaderEngine that returns image for all requests.

Link copied to clipboard
fun <Error class: unknown class>.intercept(data: Any, drawable: Drawable): <Error class: unknown class>
fun <Error class: unknown class>.intercept(predicate: (data: Any) -> Boolean, drawable: Drawable): <Error class: unknown class>