Package com.bumptech.glide.integration.ktx

Types

Link copied to clipboard
data class AsyncGlideSize(val asyncSize: suspend () -> Size) : ResolvableGlideSize
Link copied to clipboard
annotation class ExperimentGlideFlows
Link copied to clipboard
sealed class GlideFlowInstant<ResourceT>

A Status and value pair, where the value is either a Placeholder or a Resource depending on how far the Glide load has progressed and/or how successful it's been.

Link copied to clipboard
data class ImmediateGlideSize(val size: Size) : ResolvableGlideSize
Link copied to clipboard
annotation class InternalGlideApi
Link copied to clipboard
data class Placeholder<ResourceT>(val status: Status, val placeholder: Drawable?) : GlideFlowInstant<ResourceT>
Link copied to clipboard
sealed class ResolvableGlideSize
Link copied to clipboard
data class Resource<ResourceT>(val status: Status, val resource: ResourceT) : GlideFlowInstant<ResourceT>

Wraps a Status and a resource loaded from the primary request, a RequestBuilder.thumbnail request, or a RequestBuilder.error request.

Link copied to clipboard
data class Size(val width: Int, val height: Int)
Link copied to clipboard
enum Status : Enum<Status>

The current status of a flow

Functions

Link copied to clipboard
fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(): Flow<GlideFlowInstant<ResourceT>>

Identical to flow with Target.SIZE_ORIGINAL as the dimensions

fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(dimension: Int): Flow<GlideFlowInstant<ResourceT>>

Identical to flow(dimension, dimension)

fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(waitForSize: suspend () -> Size): Flow<GlideFlowInstant<ResourceT>>

Identical to flow with dimensions, except that the size is resolved asynchronously using waitForSize.

fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(width: Int, height: Int): Flow<GlideFlowInstant<ResourceT>>

Convert a load in Glide into a flow that emits placeholders and resources in the order they'd be seen by a Target.

Link copied to clipboard
Link copied to clipboard
fun Int.isValidGlideDimension(): Boolean