Builder
Constructs an MemorySizeCalculator with reasonable defaults that can be optionally overridden.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
open fun setArrayPoolSize(arrayPoolSizeBytes: Int): MemorySizeCalculator.Builder
Content copied to clipboard
Sets the size in bytes of the com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool to use to store temporary arrays while decoding data and returns this builder.
Link copied to clipboard
open fun setBitmapPoolScreens(bitmapPoolScreens: Float): MemorySizeCalculator.Builder
Content copied to clipboard
Sets the number of device screens worth of pixels the should be able to hold and returns this Builder.
Link copied to clipboard
open fun setLowMemoryMaxSizeMultiplier(lowMemoryMaxSizeMultiplier: Float): MemorySizeCalculator.Builder
Content copied to clipboard
Sets the maximum percentage of the device's memory class for low ram devices that can be taken up by Glide's com.bumptech.glide.load.engine.cache.MemoryCache and put together, and returns this builder.
Link copied to clipboard
open fun setMaxSizeMultiplier(maxSizeMultiplier: Float): MemorySizeCalculator.Builder
Content copied to clipboard
Sets the maximum percentage of the device's memory class for standard devices that can be taken up by Glide's com.bumptech.glide.load.engine.cache.MemoryCache and put together, and returns this builder.
Link copied to clipboard
open fun setMemoryCacheScreens(memoryCacheScreens: Float): MemorySizeCalculator.Builder
Content copied to clipboard
Sets the number of device screens worth of pixels the should be able to hold and returns this Builder.