setMemoryCategory

open fun setMemoryCategory(memoryCategory: Any): Any

Adjusts Glide's current and maximum memory usage based on the given MemoryCategory.

The default MemoryCategory is NORMAL. HIGH increases Glide's maximum memory usage by up to 50% and LOW decreases Glide's maximum memory usage by 50%. This method should be used to temporarily increase or decrease memory usage for a single Activity or part of the app. Use setMemoryCache to put a permanent memory size if you want to change the default.

Return

the previous MemoryCategory used by Glide.