Glide

open class Glide

A singleton to present a simple static interface for building requests with and maintaining an Engine, BitmapPool, and MemoryCache.

Types

Link copied to clipboard
interface RequestOptionsFactory
Creates a new instance of RequestOptions.

Functions

Link copied to clipboard
open fun clearDiskCache()
Clears disk cache.
Link copied to clipboard
open fun clearMemory()
Clears as much memory as possible.
Link copied to clipboard
open fun enableHardwareBitmaps()
Allows hardware Bitmaps to be used prior to the first frame in the app being drawn as soon as this method is called.
Link copied to clipboard
open fun get(context: Context): Glide
Get the singleton.
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
open fun getPhotoCacheDir(context: Context): File
Returns a directory with a default name in the private cache directory of the application to use to store retrieved media and thumbnails.
open fun getPhotoCacheDir(context: Context, cacheName: String): File
Returns a directory with the given name in the private cache directory of the application to use to store retrieved media and thumbnails.
Link copied to clipboard
open fun getRegistry(): Registry
Link copied to clipboard
open fun init(glide: Glide)
open fun init(context: Context, builder: GlideBuilder)
Link copied to clipboard
open fun onConfigurationChanged(newConfig: Configuration)
Link copied to clipboard
open fun onLowMemory()
Link copied to clipboard
open fun onTrimMemory(level: Int)
Link copied to clipboard
open fun preFillBitmapPool(bitmapAttributeBuilders: Array<PreFillType.Builder>)
Pre-fills the BitmapPool using the given sizes.
Link copied to clipboard
open fun setMemoryCategory(memoryCategory: Any): Any
Adjusts Glide's current and maximum memory usage based on the given MemoryCategory.
Link copied to clipboard
open fun tearDown()
Link copied to clipboard
open fun trimMemory(level: Int)
Clears some memory with the exact amount depending on the given level.
Link copied to clipboard
open fun with(activity: Activity): RequestManager
open fun with(fragment: Fragment): RequestManager
Begin a load with Glide that will be tied to the given android.app.
open fun with(context: Context): RequestManager
Begin a load with Glide by passing in a context.
open fun with(fragment: Fragment): RequestManager
Begin a load with Glide that will be tied to the given androidx.fragment.app.
open fun with(activity: FragmentActivity): RequestManager
Begin a load with Glide that will tied to the give 's lifecycle and that uses the given 's default options.
open fun with(view: View): RequestManager
Begin a load with Glide that will be tied to the lifecycle of the Fragment, , or Activity that contains the View.

Properties

Link copied to clipboard
val arrayPool: ArrayPool
Link copied to clipboard
val bitmapPool: BitmapPool
Link copied to clipboard
val requestManagerRetriever: RequestManagerRetriever