java.lang.Object | |
↳ | com.facebook.imagepipeline.memory.BitmapCounter |
Counts bitmaps - keeps track of both, count and total size in bytes.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BitmapCounter(int maxCount, int maxSize) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void |
decrease(Bitmap bitmap)
Excludes given bitmap from the count.
| ||||||||||
synchronized int | getCount() | ||||||||||
synchronized int | getMaxCount() | ||||||||||
synchronized int | getMaxSize() | ||||||||||
ResourceReleaser<Bitmap> | getReleaser() | ||||||||||
synchronized long | getSize() | ||||||||||
synchronized boolean |
increase(Bitmap bitmap)
Includes given bitmap in the bitmap count.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Excludes given bitmap from the count.
bitmap | to be excluded from the count |
---|
Includes given bitmap in the bitmap count. The bitmap is included only if doing so does not violate configured limit
bitmap | to include in the count |
---|