setMemorySizeCalculator
open fun setMemorySizeCalculator(builder: MemorySizeCalculator.Builder): GlideBuilder
Content copied to clipboard
Sets the MemorySizeCalculator to use to calculate maximum sizes for default MemoryCaches and/or default BitmapPools.
Return
This builder.
See also
Parameters
builder
The builder to use (will not be modified).
open fun setMemorySizeCalculator(calculator: MemorySizeCalculator): GlideBuilder
Content copied to clipboard
Sets the MemorySizeCalculator to use to calculate maximum sizes for default MemoryCaches and/or default BitmapPools.
The given MemorySizeCalculator will not affect custom pools or caches provided via setBitmapPool or setMemoryCache.
Return
This builder.
Parameters
calculator
The calculator to use.