Package com.bumptech.glide.integration.ktx
Types
Link copied to clipboard
data class AsyncGlideSize(val asyncSize: suspend () -> Size) : ResolvableGlideSize
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
data class Placeholder<ResourceT>(val status: Status, val placeholder: Drawable?) : GlideFlowInstant<ResourceT>
Content copied to clipboard
Wraps a Status and a placeholder Drawable (from RequestBuilder.placeholder, RequestBuilder.fallback, RequestBuilder.error etc).
Link copied to clipboard
Link copied to clipboard
data class Resource<ResourceT>(val status: Status, val resource: ResourceT) : GlideFlowInstant<ResourceT>
Content copied to clipboard
Wraps a Status and a resource loaded from the primary request, a RequestBuilder.thumbnail request, or a RequestBuilder.error request.
Functions
Link copied to clipboard
fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(): Flow<GlideFlowInstant<ResourceT>>
Content copied to clipboard
Identical to flow with Target.SIZE_ORIGINAL as the dimensions
fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(dimension: Int): Flow<GlideFlowInstant<ResourceT>>
Content copied to clipboard
Identical to flow(dimension, dimension)
fun <ResourceT : Any> RequestBuilder<ResourceT>.flow(waitForSize: suspend () -> Size): Flow<GlideFlowInstant<ResourceT>>
Content copied to clipboard
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>>
Content copied to clipboard
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
fun <ResourceT : Any> RequestBuilder<ResourceT>.flowResolvable(size: ResolvableGlideSize): Flow<GlideFlowInstant<ResourceT>>
Content copied to clipboard
Link copied to clipboard