MemorySizeCalculator

class MemorySizeCalculator

A calculator that tries to intelligently determine cache sizes for a given device based on some constants and the devices screen density, width, and height.

Types

Link copied to clipboard
class Builder
Constructs an MemorySizeCalculator with reasonable defaults that can be optionally overridden.

Functions

Link copied to clipboard
open fun getArrayPoolSizeInBytes(): Int
Returns the recommended array pool size for the device it is run on in bytes.

Properties

Link copied to clipboard
val bitmapPoolSize: Int
Link copied to clipboard
val memoryCacheSize: Int