Package com.bumptech.glide.integration.compose
Types
Link copied to clipboard
Link copied to clipboard
typealias RequestBuilderTransform<T> = (RequestBuilder<T>) -> RequestBuilder<T>
Content copied to clipboard
Mutates and returns the given RequestBuilder to apply relevant options.
Functions
Link copied to clipboard
fun GlideImage( model: Any?, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, requestBuilderTransform: RequestBuilderTransform<Drawable> = { it })
Content copied to clipboard
Start a request by passing model to RequestBuilder.load using the given requestManager and then applying the requestBuilderTransform function to add options or apply mutations if the caller desires.
Link copied to clipboard
fun <DataTypeT : Any> GlideLazyListPreloader( state: LazyListState, data: List<DataTypeT>, size: Size, numberOfItemsToPreload: Int, fixedVisibleItemCount: Int? = null, requestBuilderTransform: PreloadRequestBuilderTransform<DataTypeT>)
Content copied to clipboard
Preloads ahead of the users current scroll position for LazyRow and androidx.compose.foundation.lazy.LazyColumn, similar to ListPreloader and com.bumptech.glide.integration.recyclerview.RecyclerViewPreloader.